摘要: //方法一:从Thread派生一个自定义类,然后覆写run()方法: public class Main { public static void main(String[] args) { Thread t = new MyThread(); t.start(); // 启动新线程 } } cla 阅读全文
posted @ 2020-01-03 19:34 追火车的人 阅读(268) 评论(0) 推荐(0) 编辑