62,614
社区成员
发帖
与我相关
我的任务
分享
public class ThreadTestDrive {
public static void main(String[] args) {
Runnable threadJob = new MyRunnable();
Thread myThread = new Thread(threadJob);
myThread.start();
System.out.println("back in main ");
}
public class MyRunnable implements Runnable {
public void run(){
go();
}
public void go (){
doMore();
}
public void doMore() {
System.out.println("top's the stack ");
}
}
}