📄 thread1.java
字号:
/*
* Thread1.java
*
* Created on 2007年11月13日, 下午8:35
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package org.Adam;
/**
*
* @author Administrator
*/
public class Thread1 {
/** Creates a new instance of Thread1 */
public Thread1() {
}
public static void main(String[] args) {
new TestThread().run();
while(true){
System.out.println("main thread is running");
}
}
}
class TestThread {
public void run(){
while(true){
System.out.println(Thread.currentThread().getName()+" is running");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -