Programming in Java,,,
1. Fully examine the Time2 class of the text (Fig.8.5) andimplement the tick() method as it is described inEx.8.7
Create an application (test program) that will create a Time1type of object that represent the time you wake up and then tick()that object for 24 hours (86,400 times — number of seconds in aday) and verify that the resulting time is again your wakingtime.
8.7 (Enhancing Class Time2) Modify class Time2 of Fig. 8.5
OR
OR