rxjava : lambda
This commit is contained in:
17
RxJava/basic/src/_01_lambda/LambdaEx_01.java
Normal file
17
RxJava/basic/src/_01_lambda/LambdaEx_01.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package _01_lambda;
|
||||
|
||||
public class LambdaEx_01 {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
ExInterface.print("interface static method test");
|
||||
|
||||
ExInterface exInterface = () -> System.out.println("implement abstract method");
|
||||
|
||||
exInterface.getMsg();
|
||||
|
||||
String result = exInterface.defaultMethod();
|
||||
System.out.println("result = " + result);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user