About Question enthuware.ocpjp.v8.2.1820 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
supafly
Posts: 13
Joined: Mon Apr 18, 2016 2:05 pm
Contact:

About Question enthuware.ocpjp.v8.2.1820 :

Post by supafly »

List newList = iList.stream().filter(x->x>3).filter(p).collect(Collectors.toList());

Something is wired in the explanation:
The first filter is x>3. Predicate p is the second filter. Your explanation says that p is the first filter and x>3 is the second filter.

This means first 1, 2 and 3 are out. Next 5 and 7 get filtered.

Cheers

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1820 :

Post by admin »

You are right. The order should be reversed. Fixed.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests