About Question enthuware.ocpjp.v7.2.1468 :

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
arthoor
Posts: 3
Joined: Thu Jul 04, 2013 11:19 pm
Contact:

About Question enthuware.ocpjp.v7.2.1468 :

Post by arthoor »

Surprisingly, the explanation provided is incorrect: y can be greater than x, but not the other way (tested with java 1.7.0_25).
Could you explain why variables are incremented in a reversed order?

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

Re: About Question enthuware.ocpjp.v7.2.1468 :

Post by admin »

The explanation is correct. It is just showing a hypothetical situation where the x and y are different. It is a possible output. Other outputs such as the one you observed are also possible.

HTH,
Paul.

javalass
Posts: 54
Joined: Thu Mar 03, 2016 1:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1468 :

Post by javalass »

(...) you are essentially providing an implementation of the method declared in that interface but in a very consize manner.
concise ;)

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

Re: About Question enthuware.ocpjp.v7.2.1468 :

Post by admin »

Fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests