最后的問題能否這樣解答呢?
try?{ ????Thread.sleep(3000); }?catch?(InterruptedException?e)?{ ????this.interrupt(); ????//?e.printStackTrace(); }
try?{ ????Thread.sleep(3000); }?catch?(InterruptedException?e)?{ ????this.interrupt(); ????//?e.printStackTrace(); }
2016-12-14
舉報
2017-01-06
可以中斷線程,但是盡量處理成其他不拋出異常的方案。
2017-05-20
最后的問題應該怎么才能解答啊
2016-12-14
不可以