1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

这里应该是写错了,如果按照原来的代码无论Lambda表达式里面的内容如何都只是打印类名。

This commit is contained in:
Mzmba 2022-09-16 16:59:50 +08:00
parent eb674478e3
commit 73abf01335

View File

@ -186,7 +186,7 @@ public class LambdaClass {
} }
//函数式接口参数 //函数式接口参数
static void lambdaInterfaceDemo(LambdaInterface i){ static void lambdaInterfaceDemo(LambdaInterface i){
System.out.println(i); i.f();
} }
} }
``` ```