你前面有很多阅读材料。从编译器错误到异常处理,线程和线程中断。但这将满足你的要求:
try { Thread.sleep(1000); //1000 milliseconds is one second.} catch(InterruptedException ex) { Thread.currentThread().interrupt();}
你前面有很多阅读材料。从编译器错误到异常处理,线程和线程中断。但这将满足你的要求:
try { Thread.sleep(1000); //1000 milliseconds is one second.} catch(InterruptedException ex) { Thread.currentThread().interrupt();}