Need writen in Java coding
Write a program utilizing classes and objects to gather information about a moment in time. User would enter date, second, minute, hour (using military time), and what occurred at that time.
Validate that the input by the user is valid (displaying messages if not and making them reenter data). At the end, print out all data in the format below.
Example:
User enters lengths of
Date: 1/24/2017
Second: 5
Minutes: 3
Hour: 18
What Occurred: I showed up to class
Prints out: At 6:03:05 PM on Tuesday, January 24, 2017, showed up to class.