stream to list code example
Example 1: java stream to list
List<String> temp = toCheck.stream().map((a -> a.getFoo())).collect(Collectors.toList());
Example 2: stream to list
.collect(Collectors.toList());
List<String> temp = toCheck.stream().map((a -> a.getFoo())).collect(Collectors.toList());
.collect(Collectors.toList());