package how2j;
import how2j.hero;
public class ThreadTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
//调用这个程序的话,其实是一直在帮你及时的
Thread t1=new Thread(){
public void run(){
int second=0;
while(true){
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.printf("已经晚了%d",second++);
}
}
};
t1.start();
}
}