摘要: 1、创建线程 方式一 继承Thread类,重写run()方法,调用start方法开启线程 package com.study; public class TestThread extends Thread{ public void run(){ for (int i = 0; i < 100; i+ 阅读全文
posted @ 2021-03-12 22:05 爱睡觉的卡比兽 阅读(30) 评论(0) 推荐(0)