Update Example2.java

This commit is contained in:
Eric Martin 2019-11-02 12:30:28 -05:00 committed by GitHub
parent 0e23f2e682
commit 8e973888ad
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public class Example2 {
long numberOf65PlusCustomers = customers.stream()
.flatMap(c -> c.map(Stream::of)
.orElseGet(Stream::empty))
.orElseGet(Stream::empty))
.mapToInt(Customer::getAge)
.filter(c -> c > 65)
.count();