摘要: 一、创建线程的两种方式: 1、写一个类继承Thread类,并重写run方法: public class ThreadDemo { public static void main(String[] args) { Boo boo = new Boo(); boo.start(); } } class 阅读全文
posted @ 2019-05-22 17:52 意如柳 阅读(216) 评论(0) 推荐(0)