Java Reference
In-Depth Information
second.
To accomplish this, you will need to do a little research. Here is a hint to help you get
started: One way to obtain the current time is to use a
Calendar
object, which is part
of the
java.util
package. (Remember, Oracle provides online documentation for all
of Java's standard classes.) You should now be at the point where you can examine
the
Calendar
class on your own and use its methods to solve this problem.