Skip to content

Instantly share code, notes, and snippets.

Created December 30, 2018 12:19
What would you like to do?
public static void main (String[] args) {
List inputList =
Arrays.asList("functional", "programming", "with", "closures");
List mappedList = -> s.length()).collect(toList());
System.out.println("Initial List: " + inputList);
System.out.println("Mapped List: " + mappedList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment