java笔记--多敲代码四
Lambda表达式体验格式:(形式参数)->{代码块}package test08;public class MyRunnable implements Runnable { @Override public void run(){ System.out.println("多线程启动了"); }}package test08;/*需求:启动一个线程,在控制台输出多线程启动了 */public class LambdaDemo {