public class PrintThread implements Runnable{
private String name;
public PrintThread(){
}
public PrintThread(String name){
super();
this.name=name;
}
public void run(){
print();
}
private void print() {
System.out.println(name+"开始打印");
}
}
public class TestThread {
public static void main(String[] args) {