Java examples for Lambda Stream:Functional Interface
Mark interface as FunctionalInterface
public class LamdaMain1 { public static void main(String[] args) { InnerInterface innerInterface = (a, b) -> System.out.println("Sum:" + (a + b)); innerInterface.sum(2, 3);/*from w w w. j ava2 s .c o m*/ } @FunctionalInterface interface InnerInterface { void sum(int a, int b); } }