February 2014
Beginner
1248 pages
62h 25m
English
Lines 22 and 24 each call class Instant’s static method now to get the current time before and after the call to sort. To determine the difference between two Instants, line 27 uses class Duration’s static method between, which returns a Duration object containing the time difference. Next, we call Duration method toMillis to get the difference in milliseconds.
Read now
Unlock full access