The code will not compile because the compiler cannot find 'books'.
I think 'books' should be replaced with 'friends'.
Furthermore, the explanation contains: ...second, it maps each Person element to an int using the mapping function b.getAge().
I think the mapping function should be f->f.getAge().
Kind regards,
Martijn
About Question enthuware.ocpjp.v8.2.1810 :
Moderators: Site Manager, fjwalraven
-
- Posts: 32
- Joined: Tue Oct 06, 2015 9:06 am
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1810 :
You are right. Fixed.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 4 guests