?? mythread.java
字號:
public class MyThread extends Thread{
public void run(){
for(int a=0;a<50;a++){
try{ Thread.sleep(100);}catch(Exception e){}
System.out.println(Thread.currentThread().getName()+" "+a);
}
}
public static void main(String args[])throws Exception {
MyThread t1=new MyThread();
t1.start(); //啟動(dòng)線程,這是什么意思,
t1.run();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -