When there is an List, is there a possibility of getting List of all person.getName() out of that? Is there an prepared call for that
List
person.getName()
You might have done this but for others
using Java 1.8
List namesList = personList.stream().map(p -> p.getName()).collect(Collectors.toList());