We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9330d4 commit bfa4f78Copy full SHA for bfa4f78
docs/java/new-features/java8-common-new-features.md
@@ -176,7 +176,7 @@ public interface Runnable{}
176
177
```java
178
@FunctionalInterface
179
-public interface LambdaFunctionalInterface {
+public interface LambdaInterface {
180
void f();
181
}
182
//使用
@@ -221,7 +221,7 @@ public class LambdaClassSuper {
221
222
223
224
-public class LambdaClass {
+public class LambdaClass extends LambdaClassSuper {
225
public static LambdaInterface staticF() {
226
return null;
227
@@ -243,6 +243,7 @@ public class LambdaClass {
243
244
//4. 构造方法调用
245
LambdaInterface tt = LambdaClassSuper::new;
246
+ }
247
248
```
249
0 commit comments