📄 simplethread2.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 + -