threadtest.java
来自「java编程开发技巧与实例的编译测试通过的所有例程」· Java 代码 · 共 16 行
JAVA
16 行
public class ThreadTest
{
public static void main(String[] args)
{
System.out.println("Starting ThreadTest");
CountingThread thread1 = new CountingThread();
thread1.start();
CountingThread thread2 = new CountingThread();
thread2.start();
CountingThread thread3 = new CountingThread();
thread3.start();
System.out.println("ThreadTest is done.");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?