sleep
让正在执行的程序暂停一段时间
SleepLearn.java
public class SleepLearn{
public static void main(String[] args) throws Exception
{
for(byte i=0; i<100; i++){
System.out.println(i);
Thread.sleep(1000);
}
}
}