怎么让一个线程等待多次?
public static void main(String[] args) throws InterunpedException{
Thread t=Thread.currentThread();
System.out.println("1");
t.sleep(1000);
System.out.println("2");
t.sleep(1000);
System.out.println("3");
}
一运行就会跳出对话框,说 javaw.exe遇到问题需要关闭,不知道哪里有问题,大家帮帮忙啊