Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LocalDate now = LocalDate.now();
persons.stream()
.filter(Person::isMale)
.filter(p -> p.isAdult(now)
.map(p -> p.getFirstName() + " " + p.getLastName())
.collect(Collectors.toList());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.