📄 run.java~1~
字号:
class SimpleThread extends Thread{ public SimpleThread(String stock){ super(stock); //this.setDaemon(true); } public void run(){ for(int i=0;;i++){ System.out.println(i+" "+getName()); try{ Qiulin ql=new Qiulin(); Qlsh qlsh=new Qlsh(); sleep(6000); } catch(InterruptedException e){ System.err.print(e.getMessage()); } catch(Exception e){ //new SimpleThread("qlsh").start(); // this.run(); //Qiulin ql=new Qiulin(); this.start(); } } }}class MainThread extends Thread{ public MainThread(String stock){ super(stock); //this.setDaemon(true); } public void run(){ SimpleThread mt=new SimpleThread("qlsh"); try{ //mt=new SimpleThread("qlsh"); mt.start(); }catch(Exception e){ mt.stop(); mt.start(); } }}public class Run { public static void main(String[] args) { new MainThread("qlsh").start(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -