Given: a List<Map<String,String>>
.
I want to get List<String>
of values of the map.
If I understand correctly what you mean you can do something like this :
List<Map<String, String>> listOfMaps = ...;
List<String> values = listOfMaps.stream()
.flatMap(map -> map.values().stream())
.collect(Collectors.toList());