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

📄 simplethread2.java

📁 java 完全探索的随书源码
💻 JAVA
字号:
public class SimpleThread2 extends java.util.Date implements Runnable{  private String threadName = null;  // Default Constructor  public SimpleThread2( String name )  {    super();    threadName = name;  }  // Private accessor for the instance variable  private String getThreadName()  {    return this.threadName;  }  // Implement the run method required from the Runnable interface  public void run()  {    // Do the thread work here    this.setTime( System.currentTimeMillis() );    System.out.println( getThreadName() + ": " + this.toString() );  }}

⌨️ 快捷键说明

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