作者AmosYang (LetMeGoogleThatForYou)
看板java
标题Re: [J2SE] 请问delay的方法
时间Sun Oct 4 12:26:06 2009
※ 引述《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
1F:推 GreatShot:可能英文不好吧 10/04 14:44