摘要: 线程的实现: 1.继承Thread 类,重写run函数 package demo2; public class Demo1 { public static void main(String[] args) { Cat cat = new Cat(); cat.start(); } } class C 阅读全文
posted @ 2019-04-24 13:52 Hello_World2020 阅读(166) 评论(0) 推荐(0) 编辑