About Question enthuware.ocpjp.v8.2.1866 :

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
hordine
Posts: 3
Joined: Thu May 12, 2016 4:28 am
Contact:

About Question enthuware.ocpjp.v8.2.1866 :

Post by hordine »

If your only goal is to make the code compile you can do either one:
- Remove code at //2
or
- Change //3 to: Function<Integer, Integer> f = x->x+(int)(x*rate);

No need to do both.

When you do both you're changing the logic. If rate equals 0, for instance, you'd be multiplying payment by 0 and not by 0.1 like before.

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

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

Post by admin »

That is why the problem statement says, "... when applied independent of each other ....".

HTH,
Paul.

hordine
Posts: 3
Joined: Thu May 12, 2016 4:28 am
Contact:

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

Post by hordine »

I see, ok, yes. There's nothing wrong with it then. You can delete my question if you like.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests