摘要: 需要开启线程 的方法继承线程类,并在run 中写逻辑 public class Ant extends Thread{ Cake cake; public Ant(String name,Cake cake){ this.cake = cake; setName(name); } @Override 阅读全文
posted @ 2023-09-15 14:51 稷下元歌 阅读(3) 评论(0) 推荐(0) 编辑