?? testfirstrunnable.java
字號:
/** A simple class to test class FirstRunnable. It creates three instances of
FirstRunnable, and lets them run for half a second, then stops their running
so they can display their result. */
public class TestFirstRunnable
{
public static void main(String[] args) throws InterruptedException
{
FirstRunnable r1 = new FirstRunnable();
FirstRunnable r2 = new FirstRunnable();
FirstRunnable r3 = new FirstRunnable();
Thread.sleep(500); // can throw an exception
FirstRunnable.running = false;
Thread.sleep(2000); // can throw an exception
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -