📄 testthread.java
字号:
class testthread {public static void main(String args[]) { Thread t =Thread.currentThread(); t.setName("This Thread is running"); System.out.println("The running thread:" + t); try { for (int i=0;i<5;i++) { System.out.println("Sleep time "+i); Thread.sleep(1000); } } catch (InterruptedException e) { System.out.println("thread has wrong"); }}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -