public class demo_Run {
public static void main(String[] args) {
demo01();
}
public static void demo01() {
new Thread(){
public void run(){
for (int i = 0; i < 1000; i++) {
System.out.println("aaaaaaaaaaaaaaaaaa");
}
}
}.start();
new Thread(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
for (int i = 0; i < 1000; i++) {
System.out.println("bb");
}
}
}).start();
for (int i = 0; i < 1000; i++) {
System.out.println("cccccccccccccccccccccccccccccccccccccccccccccccccccccccccc");
}
new Thread(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
}
}).start();
}
}
class demo{
} |
|