News

Note that we at this stage are not implementing the function blocks, we're only stating what functionality they must provide, by declaring their interfaces. As this example is quite simple, we'll ...
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.