About Question enthuware.ocpjp.v8.2.1810 :

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
jorgeruiz
Posts: 4
Joined: Sat Jan 20, 2018 1:36 pm
Contact:

About Question enthuware.ocpjp.v8.2.1810 :

Post by jorgeruiz »

I think the last phrase in the 1st fragment of the explanation is incorrect:
Finally, the average() method computes the average of all the elements, which is 0.0.
It can't be 0.0 since there is no elements in the stream to get an average, hence the Optional is empty.
The second fragment correct this:
...the average() method returns an OptionalDouble containing OptionalDouble.empty
But still, I think the first fragment should be corrected to not cause misunderstandings.

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

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

Post by admin »

I see your point. Updated.
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 24 guests