I have just begun to use Java 8 and I am wondering if there is a way to write a method that returns a Function?
Function
Right now I have method like below:
Get rid of your return statement inside of your function definition:
Function getMyFunction() { return (it) -> "Hello, world: " + it; }