摘要: 创建线程 继承Thread类创建线程 public class Thread01 { public static void main(String[] args) { //创建Cat对象,可以当做线程使用 Cat cat = new Cat(); //启动线程 cat.start(); } } // 阅读全文
posted @ 2022-10-11 22:50 youmo~ 阅读(22) 评论(0) 推荐(0) 编辑