mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
这里应该是写错了,如果按照原来的代码无论Lambda表达式里面的内容如何都只是打印类名。
This commit is contained in:
parent
eb674478e3
commit
73abf01335
@ -186,7 +186,7 @@ public class LambdaClass {
|
||||
}
|
||||
//函数式接口参数
|
||||
static void lambdaInterfaceDemo(LambdaInterface i){
|
||||
System.out.println(i);
|
||||
i.f();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user