Java 8 lambda testcode

This commit is contained in:
Andy Clement
2014-02-17 16:23:53 -08:00
parent 9774e2a0d4
commit f9a8252317
14 changed files with 275 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package basic;
public class LambdaC {
public interface Boo { long m(int i,int j); }
public static void main(String[] args) {
run();
}
public static long run() {
Boo f = null;
f = (i,j) -> i*j;
return f.m(3,2);
}
}