public class Test01 {
public static void main(String[] args) {
while(true){
try {
Thread.currentThread().sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("now is " + System.currentTimeMillis());
}
}
}
while循环时间间隔
最新推荐文章于 2023-08-09 16:24:38 发布