如何在Java中暂停当前线程20秒钟?
Thread.sleep(20*1000);
Thread.sleep(20000)
您可能还需要包含 try catch 语句:
try { Thread.sleep(20*1000); } catch(InterruptedException e) { }