public class test {
class ThreadTest
{
public static void main(String[] args)此处为什么会报错啊
{
Test t1 = new Test();
Test t2 = new Test();
t1.start();
t2.start();
for(int x = 0; x<60; x++)
{
System.out.println("main...."+x);
}
}
}
class Test extends Thread
{
public void run()
{
for(int x = 0; x<60; x++)
{
System.out.println("test run"+x);
}
}
}
}
|
|