Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
private void exercise1() {
List<String> list = Arrays.asList(
"The", "Quick", "BROWN", "Fox", "Jumped", "Over", "The", "LAZY", "DOG");
List<String> newList =
list
.stream()
.map(String::toLowerCase)
.collect(Collectors.toList());
newList.forEach(System.out::println);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment