1
0
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:
Guide 2022-09-17 12:45:07 +08:00 committed by GitHub
commit 86dbcd6499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
} }
} }
``` ```