📄 thread8.java
字号:
class NewLine extends Thread{
public void run(){
for(int i=1;i<=10;i++){
System.out.println();
try{
sleep(1000);
}catch(InterruptedException ie){}
}
}
}
public class Thread8 extends Thread{
public void run(){
for(int i=1;i<=100;i++){
System.out.print(i);
try{
sleep(100);
}catch(InterruptedException ie){}
}
}
public static void main(String[] args){
Thread8 t=new Thread8();
NewLine n=new NewLine();
t.start();
n.start();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -