2018年4月24日

摘要: 1、创建线程的两种方式: (1)创建Thread类的子类,重写run方法 class Thread1 extends Thread{ public void run(){ 重写方法体 } } 在main方法中: Thread1 t1 = new Thread1 (); t1.start(); (2) 阅读全文
posted @ 2018-04-24 11:44 黑子菜园 阅读(177) 评论(0) 推荐(0) 编辑

导航