Re: [J2SE] 請問delay的方法
看板java作者AmosYang (LetMeGoogleThatForYou)時間16年前 (2009/10/04 12:26)推噓1(1推 0噓 0→)留言1則, 1人參與討論串5/12 (看更多)
※ 引述《focus78612 ()》之銘言:
: 但每次用到延遲都要用try{...}catch{...}也未免太過麻煩,
: 所以想問板上的高手們,
: 直接用Thread.sleep(1000);到底合不合乎語法?
: 跟老師討論了好久,
: 還是找不出原因,
: 希望板上的高手們能為我解答
我很好奇你與你老師討論了好久在討論些什麼東西… XD
因為
http://lmgtfy.com/?q=java+exception
出來第二項結果就是
Lesson: Exceptions (The Java? Tutorials > Essential Classes)
http://java.sun.com/docs/books/tutorial/essential/exceptions/
其中就會提到所謂的 checked 及 unchecked 這兩種 exception,
然後
http://lmgtfy.com/?q=java+checked+unchecked+exceptions
出來第三項結果就有更詳盡的說明...
Exceptions
http://java.sun.com/docs/books/jls/third_edition/html/exceptions.html
--
"Mr. Data, can you show me how to parse this XML?"
"Certainly, sir. Let me google that for you."
-- StarTrek, the Next Gen. 《Back to 2009》 (誤)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 65.87.177.87
推
10/04 14:44, , 1F
10/04 14:44, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 5 之 12 篇):