Answers for "java list addAll stream() filtereted"

1

java list addAll stream() filtereted

List<Person> beerDrinkers = persons.stream()
    .filter(p -> p.getAge() > 16).collect(Collectors.toList());
Posted by: Guest on November-08-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language