Created
September 24, 2017 17:00
-
-
Save hasalex/1b4e94a47f1dce6ae1b7c97bda34b824 to your computer and use it in GitHub Desktop.
Revisions
-
hasalex created this gist
Sep 24, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ persons.stream() .filter(Person::isMale) .filter(p -> p.isAdult(LocalDate.now())) .map(p -> p.getFirstName() + " " + p.getLastName()) .collect(Collectors.toList());