/**
* 类描述:两个线程交替打印
* @author :大树
* @version 1.0
* @date 2021/6/28 18:34
*/
public class testRunable {
public static void main(String[] args){
TestThread t= new TestThread();
Thread t1=new Thread(t);
Thread t2= new Thread(t);
t1.setName
两个线程交替打印1-100
最新推荐文章于 2022-01-14 21:03:22 发布

最低0.47元/天 解锁文章
650

被折叠的 条评论
为什么被折叠?



