Answers for "java stream get list of one field"

0

java stream get list of one field

List<String> names = 
    personList.stream()
              .map(Person::getName)
              .collect(Collectors.toList());
Posted by: Guest on January-08-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language