JavaCompilerCore/examples/lambda/general.jav

24 lines
335 B
Plaintext
Raw Permalink Normal View History

2013-10-18 11:33:46 +00:00
//package LampdaExpressions;
import java.util.concurrent.Callable;
public class general extends Menge<Menge<Integer>> {
2013-10-18 11:33:46 +00:00
public String test(String c) throws Exception {
Callable<String> halloLambda;
a;
a = () -> {return "hallo";};
a = a + 1;
return a.call();
}
public String test2(){
return "hallo";
}
}