Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
}