创建线程

1 public class Ztest { public static void main(String[] args) { MyThread thread=new MyThread(); thread.start();//启动线程 for(int i=0;i<1000;i++) { System.out.println(“mainThread:”+i); }}} 2 public class
相关文章
相关标签/搜索