class MyThread extends Thread{
public void run(){
for(int i = 0; i<100; i++){
System.out.println(“$$$”);
}
}
}
public class TestMyThread{
public static void main(String args[]){
Thread t = new MyThread();
t.start();
t.start();
t.start();
}
}
输出会是怎么样的呢?? |
|