//定义休眠的秒int n= try{Thread.sleep(n*1000);}catch(InterruptedException e){System.out.println("休眠被中断。");}
Thread.sleep(1000);