package SimpleTest;
/**
* @className: Test01
* @description: lambda表达式
* @author: CCQ
* @date: 2021/9/10
**/
public class Test01 {
public static void main(String[] args) {
new Thread(()-> System.out.println("启动线程!")).start();
new Thread((Runnable)() -> System.out.println("ww")).start();
Runnable r =()->{
System.out.println("wwwwd");
};
new Thread(r).start();
((a)()-> System.out.println("www")).d();
}
}
interface a{
void d();
}
lambda表达式
最新推荐文章于 2024-08-19 16:01:20 发布