通过继承Thread类 继承Thread类 重写run()方法 public class UseThreadStart extends Thread{ public static void main(String[] args){ //创建子对象 UseThreadStart thread=new UseThreadStart(); //开启多线程 thread.start(); } //重写run()方法 public void run(){ for (int i=0; i<10; i++){<