看板
[ java ]
討論串請問如何在實作runnable的類別裡,睡不同的時間?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
like this ?. class Test implements Runnable{. private int time;. public Test(int time){. this.time=time;. }. public void run(){. try{. Thread.sleep(ti
(還有237個字)
內容預覽:
如code. class Test implements Runnable{. public void run(){. try{. Thread.sleep(1000);. }. catch(InterruptedException e){}. .......sleep(2000)??. }. }.
(還有104個字)
首頁
上一頁
1
下一頁
尾頁