Java如何让程序休眠2秒再继续执行 //休眠2秒,模拟正在办理业务 try { Thread.sleep(2000);//毫秒数 } catch (InterruptedException e) { e.printStackTrace(); }