About Question enthuware.ocpjp.v8.2.1810 :
Moderator: admin
-
- Posts: 5
- Joined: Sat Jul 06, 2019 7:10 am
- Contact:
About Question enthuware.ocpjp.v8.2.1810 :
In the explanation: the phrase " Finally, the average() method computes the average of all the elements, which is 0.0. " is negated by "Since the stream contains no element and the average() method returns an OptionalDouble containing OptionalDouble.empty".
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1810 :
Actually, the exact sentence used in the explanation is, "Finally, the average() method tries to compute the average of all the elements." This is what the code, as written, is meant to do. However, as the explanation further notes, something else happens.
Who is online
Users browsing this forum: No registered users and 7 guests