News

Function<Integer, String> functionClass = new FunctionClass(); System.out.println(functionClass.apply(2)); When you run the above code, the output would be four. Java Function interface example.