Skip to content

Instantly share code, notes, and snippets.

@kasundharmadasa
Last active December 3, 2018 06:53
Show Gist options
  • Save kasundharmadasa/aa3518eba278c4d0b64d22a54a7d30fd to your computer and use it in GitHub Desktop.
Save kasundharmadasa/aa3518eba278c4d0b64d22a54a7d30fd to your computer and use it in GitHub Desktop.
import java.util.function.Function;
public class Main {
public static void main(String[] args) {
Function<String, Integer> lambda = a -> a.length();
System.out.println(lambda.apply("MyString"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment