java線程的兩種啓動方式

/**  * 實現Runnable接口  * @author dell  */ public class TicketRunnable implements Runnable{ //實現run方法 @Override public void run() { for(int i=0; i<10; i++){ System.out.println(i+"  當前的線程爲  "+Thread.curre
相關文章
相關標籤/搜索