匿名内部类的方法 创建多线程

 

 

 1.thread的

 

 2.runnable的

 

 

 第二种还可以简化

posted @ 2020-01-13 18:02  暖o0兮  阅读(139)  评论(0编辑  收藏  举报