摘要:
import java.lang.Thread;//引入线程类public class MyThread { public static void main(String[] args) { //用实现线程接口的类创建线程并执行线程 testThread helloThread =new testThread(); Thread myThread=new Thread(helloThread);//注意构造函数的写法 myThread.start();//执行线程 }}//实现线程接口的类class testThread implements Runnable{//重... 阅读全文
posted @ 2011-12-02 20:44
氺〤魚Oo。
阅读(122)
评论(0)
推荐(0)