标签: java sleep
thumbnail

java sleep的用法有哪些

在Java中,可以使用Thread.sleep()方法来使当前线程休眠一段时间。Thread.sleep()方法接受一个以毫秒为单位的长整型参数,表示线程要休眠的时间。 以下是Thre……