摘要: 方式一: extends Thread 步骤:1.继承Tread类 2.重写run()方法(为了存储多线程要运行的代码) 3.创建Thread类的子类对象 4.调用子类对象的start()方法启动线程方法二:implements Runnable... 阅读全文
posted @ 2015-04-27 17:53 lxricecream 阅读(140) 评论(0) 推荐(0)