⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplethread2main.java

📁 java 完全探索的随书源码
💻 JAVA
字号:
public class SimpleThread2Main{  public static void main(String[] args)  {    // Create an instance of our new class that implements the    // Runnable interface    SimpleThread2 simpleThread = new SimpleThread2( "SimpleThread2" );    SimpleThread2 simpleThread1 = new SimpleThread2( "SimpleThread1" );    // Create a new instance of a thread using our Runnable class    // as the target and tell it to use "SimpleThread2" as the name    Thread newThread = new Thread( simpleThread, "SimpleThread2" );    Thread newThread1 = new Thread( simpleThread1, "SimpleThread1" );    // Start the thread    newThread.start();    newThread1.start();  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -