摘要: 众所周知,Thread是继承了Runnable接口并重写run方法实现了线程。那么如果在匿名内部类中如何使用线程,并开启线程呢? public class Test { public static void main(String[] args) { //Thread实现的匿名内部类 new Thr 阅读全文
posted @ 2019-08-31 18:46 周敏6012 阅读(180) 评论(0) 推荐(0) 编辑