第1个回答 推荐于2017-09-25
public class Test {
public static void main(String[] args) {
for(int i=0 ;i<10 ;i++){
try {
Thread.currentThread().sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("now is " + System.currentTimeMillis());
}
}
}