看板 [ java ]
討論串請問如何在實作runnable的類別裡,睡不同的時間?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 0→)留言3則,0人參與, 最新作者darkk6 (Mr. Pan)時間14年前 (2011/09/08 17:36), 編輯資訊
0
0
0
內容預覽:
like this ?. class Test implements Runnable{. private int time;. public Test(int time){. this.time=time;. }. public void run(){. try{. Thread.sleep(ti
(還有237個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者spiderman007 (千里之外)時間14年前 (2011/09/08 17:33), 編輯資訊
0
0
0
內容預覽:
如code. class Test implements Runnable{. public void run(){. try{. Thread.sleep(1000);. }. catch(InterruptedException e){}. .......sleep(2000)??. }. }.
(還有104個字)
首頁
上一頁
1
下一頁
尾頁