how to get List of propery from a list of objecti n java 8 code example
Example: java stream get list of one field
List<String> names =
personList.stream()
.map(Person::getName)
.collect(Collectors.toList());
List<String> names =
personList.stream()
.map(Person::getName)
.collect(Collectors.toList());