标签:方式 system rgs print tar public art string ring
class Thread {
private Runnable r;
Thread(){
}
Thread(Runnable r){
this.r=r;
}
public void run(){
if(r!=null)
r.run();
}
public void start() {
run();
}
}
class ThreadImpl implements Runnable{
public void run(){
System.out.println("runnable run");
}
}
public class Test {
public static void main(String[] args) {
ThreadImpl i=new ThreadImpl();
Thread t=new Thread(i);
t.start();
}
}
标签:方式 system rgs print tar public art string ring
原文地址:http://www.cnblogs.com/zy1103055245/p/6884628.html