java讓一個線程一直運行。java代碼

public class MyThread{ public static void Thread(){ new Thread() { int i = 0; public void run(){ boolean flg = false; while(!flg){ try { i++; System.out.println("我
相關文章
相關標籤/搜索