(java)
1. In this program, you need to implement a class called Time.Time class will have three integer members, which are as follows: ▪hour ▪ minute ▪ second
a) Your program needs to have an input method that receivesinput from keyboard and assigns corresponding values to each Timeobject that is declared (for example for object t1, hour = 18,minute = 14 and second = 18). Assume that the values are input inthe military time format.
b) In addition, implement the following two methods
1) PrintStandardTime: this method will print to the screen, thetime in the standard format, (hour:minute:second AM/PM) 6:14:18PM.
2) PrintMilitaryTime: this method will
OR
OR