interface TwoIntegerOperation {
    int run(int a, int b);
}

interface OneIntegerOperation {
    int run(int a);
}

class Main {
    public static void main(String[] args) {
        TwoIntegerOperation add = (a, b) -> a + b;
        TwoIntegerOperation subtract = (a, b) -> a - b;
        
        System.out.println("3 + 2 = " + add.run(3, 2));
        System.out.println("4 - 3 = " + subtract.run(4, 5));
        
        OneIntegerOperation increment = (int a) -> a + 1;
        System.out.println("5 incremented by 1 gives " + increment.run(5));
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: