//import java.lang.Thread;
//要捕捉线程停止异常才可用.
try {// 暂停2s
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
结束程序:
System.exit(0); //结束程序
//import java.lang.Thread;
//要捕捉线程停止异常才可用.
try {// 暂停2s
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
结束程序:
System.exit(0); //结束程序
3552
2420

被折叠的 条评论
为什么被折叠?