Java tutorial
public class Main { public static void main(String[] argv) { Calculator iCal = (x, y) -> x + y; System.out.println(iCal.calculate(1, 2)); } } @FunctionalInterface interface Calculator { int calculate(int x, int y); }