Question: in java language, please help me with this question. comment on the code. also make sure to do the UML diagram how it says. Programming

in java language, please help me with this question. comment on the code. also make sure to do the UML diagram how it says.
in java language, please help me with this question. comment on the

Programming Questions For the progamming questions, please use the class name given in each question; include the class UML diagram in the word file; include the test class (with main method) in the same file that has the primary class (Time, MyInteger, and Queue). Q04. ( 6 points) Design a class named Time. The class contains: - The data fields hour, minute, and second that represent a time. - A no-arg constructor that creates a Time object for the current time. (The values of the data fields will represent the current time.) - A constructor that constructs a Time object with a specified elapsed time since midnight, January 1, 1970, in milliseconds. (The values of the data fields will represent this time.) - A constructor that constructs a Time object with the specified hour, minute, and second. - Three getter methods for the data fields hour, minute, and second, respectively. - A method named setTime(long elapseTime) that sets a new time for the object using the clapsed time. For example, if the elapsed time is 555550000 milliseconds, the hour is 10 , the minute is 19 , and the second is 10 . Draw the UML diagram for the elass then implement the class. Write a tent program that ereates three Time objeets (using new Time 0 , new Time(555550000), and new Time (5,23,55) and displays their hour, minute, and second in the format hour.minute:second. (Hut: For the no-arg constructor, the current time can be obtained using System.currentTimeMillis 0 . The current TimeMillis method in the System class retums the current time in milliseconds elapsed since the time midnight, January 1, 1970 GMT (Assume the time is in GMT). Here is a sample run: 16:16:2710:19:105/23:55

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!