Skip to content

Commit 86dbcd6

Browse files
authored
Merge pull request Snailclimb#1826 from Mzmba/main
Java8 新特性实战 自定义一个函数式接口,这里的代码写错了。
2 parents eb67447 + 73abf01 commit 86dbcd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/new-features/java8-common-new-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public class LambdaClass {
186186
}
187187
//函数式接口参数
188188
static void lambdaInterfaceDemo(LambdaInterface i){
189-
System.out.println(i);
189+
i.f();
190190
}
191191
}
192192
```

0 commit comments

Comments
 (0)