📄 thread.java
字号:
/**
*A public class
*/
public class thread extends Thread {
public void run() {
try {
//for creting an object
Logo myLogo = new Logo();
//show the logo
myLogo.show();
//for sleeping the thread
sleep(3500);
//hide the logo
myLogo.hide();
myLogo = null; // no longer use it
//for running the progam
new JLibrary();
}
catch(Exception e) {
System.out.println(e.toString());
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -