About Question enthuware.ocpjp.ii.v11.2.3317 :

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
dfigueira
Posts: 21
Joined: Thu May 05, 2016 2:50 am
Contact:

About Question enthuware.ocpjp.ii.v11.2.3317 :

Post by dfigueira »

Regarding this sentence in the explanation:
DoubleUnaryOperator is a function that accepts a Double value and returns a Double and so can be used here.
"(...)DoubleUnaryOperator is a function that accepts a double and returns a double (...)"
Since we are assigning this lambda expression to a DoubleFunction<DoubleUnaryOperator>, it implies that we are trying to using this lambda expression to implement a DoubleFunction that converts a Double into a DoubleUnaryOperator.
"(...)DoubleFunction that converts a double into a DoubleUnaryOperator(...)"

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

Re: About Question enthuware.ocpjp.ii.v11.2.3317 :

Post by admin »

Correct. Fixed.
thank you for your feedback!

sirtomash
Posts: 4
Joined: Mon Oct 17, 2016 8:45 am
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3317 :

Post by sirtomash »

Besides technical issues this text contains letter typo:
Now, in this question we are using a DoubleStream and so, its map method expects a an operation that can accept a Double value and onvert it to some other Double value. (Note that the resulting stream, therefore, will also be of type DoubleStream).

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests