@Override
public void run() {
super.run();
for (int i = 0; i < 400; i++) {
System.out.println("hi,陈从宾,我是Demo线程"+i);
}
}
}
public class ThreadDemo {
public static void main(String[] args) {
Demo demo = new Demo();
demo.start();
for (int i = 0; i < 400; i++) {
System.out.println("hi,我是main线程"+i);
}
//demo.start();
}
}