About Question enthuware.ocpjp.v8.2.1744 :
Posted: Mon Apr 17, 2017 11:57 am
Hi!
Note:
The following code example from the explanation is valid only if we static import java.time.temporal.ChronoUnit.MINUTES:
Maybe it would be clearer to use the same code style as the code from the question (ChronoUnit.Minutes):
Regards,
Boris
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);
Regards,
Boris