摘要: public class ThreadMain { 02 03 /** 04 * @param args 05 */06 public static void main(String[] args) { 07 08 /** 09 * 创建thread的子类,复写其run方法 10 */11 Thread thread = new Thread(){ 12 @Override13 public void run() { 14 while(true){ 15 try { 16 ... 阅读全文
posted @ 2011-10-04 09:34 李意锋 阅读(154) 评论(0) 推荐(0)