public class lambdaTest6 {
public static void main(String[] args) {
new Thread(()->{
for(int i=0;i<100;i++) {
System.out.println("一边学习lambda");
}
}) .start();
new Thread(()-> System.out.println("一边学习奔溃")) .start();
}
}
创建线程的方式三(jdk8-lambda)
最新推荐文章于 2024-07-08 02:44:41 发布