我的运行结果怎么是先打印了60次 hello world 然后是70次 demo run
class Demo extends Thread
{
public void run()
{
for(int b = 0; b < 70;b++)
System.out.println("Demo run" + b);
}
}
public class ThreadDemo
{
public static void main(String[] args)
{
Demo d = new Demo();
d.start();
for(int a = 0;a < 60;a++)
System.out.println("Hello World!" + a);
}
}
|
|