摘要: 方法一:直接继承Thread类 class Mythread extends Thread { // 1.继承Threadpublic void run() {// 2.重写run方法for (int i = 0; i < 1000; i++) { // 3.将要执行的代码写在run方法中Syste 阅读全文
posted @ 2020-07-15 22:12 一块 阅读(326) 评论(0) 推荐(0) 编辑