摘要:
public class Demo03 { public static void main(String[] args) throws InterruptedException { Test01(); new Thread(){ public void run(){ for(int i = 0;i< 阅读全文
摘要:
public class Demo02 { public static void main(String[] args) { Test01(); new Thread(){ public void run(){ System.out.println(getName()+".......ccccccc 阅读全文
摘要:
public class Demo02 { public static void main(String[] args) {第一种方法: new Thread("构造方法设置线程名字"){ public void run(){ System.out.println(this.getName()+". 阅读全文
摘要:
public class Demo01 { public static void main(String[] args) {//方法一: new Thread() { //1.继承Thread类 public void run() { //2.重写run方法 for (int i = 0; i < 阅读全文