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("我
相关文章
相关标签/搜索