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 LambdaD2 {
public interface Boo { String m(int i,String s, int j, boolean b); }
public static void main(String[] args) {
run();
}
public static String run() {
Boo f = null;
f = (i,j,k,l) -> j+(i*k)+l;
return f.m(3,"def",88,true);
}
}