mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-20 22:17:09 +08:00
Merge pull request #1826 from Mzmba/main
Java8 新特性实战 自定义一个函数式接口,这里的代码写错了。
This commit is contained in:
commit
86dbcd6499
@ -186,7 +186,7 @@ public class LambdaClass {
|
|||||||
}
|
}
|
||||||
//函数式接口参数
|
//函数式接口参数
|
||||||
static void lambdaInterfaceDemo(LambdaInterface i){
|
static void lambdaInterfaceDemo(LambdaInterface i){
|
||||||
System.out.println(i);
|
i.f();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user