I want to transform a list of strings to upper case.
Here's my code to do this:
List<String> list = Arrays.asList("abc", "def", "ghi");
List<String> upped = list.stream().map(String::toUpperCase).collect(Collectors.toList());
Is there a simpler/better way to do this?