threadtest.java

来自「java语言与面向对象程序设计源程序」· Java 代码 · 共 14 行

JAVA
14
字号
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 + -
显示快捷键?