Skip to content

Commit 73abf01

Browse files
committed
这里应该是写错了,如果按照原来的代码无论Lambda表达式里面的内容如何都只是打印类名。
1 parent eb67447 commit 73abf01

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)