Page 1 of 1

About Question enthuware.ocpjp.v8.2.1744 :

Posted: Mon Apr 17, 2017 11:57 am
by foxxbl
Hi!
Note:
The following code example from the explanation is valid only if we static import java.time.temporal.ChronoUnit.MINUTES:

Code: Select all

// these two lines are equivalent
amount = start.until(end, MINUTES);
amount = MINUTES.between(start, end);
Maybe it would be clearer to use the same code style as the code from the question (ChronoUnit.Minutes):

Regards,
Boris

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

Posted: Mon Apr 17, 2017 9:45 pm
by admin
Updated.
thank you for your feedback!
Paul.