List<String> names = characters .stream() .map(Person::getName) .collect(Collectors.toList());
Last updated 2 years ago
Was this helpful?