I have the following qustion:
How can I convert the following code snipped to Java 8 lambda style?
List tmpAdresses = new ArrayList
One more way of using lambda collectors like above answers
List tmpAdresses= users .stream() .collect(Collectors.mapping(User::getAddress, Collectors.toList()));