Hello, I am new to java with some experience in C++.
I am trying to write code that reads two different times and displays the difference in hours and minutes.
0 is midnight and the input should be in 24hr format.
This program should work even if the first time input is later in the day than the second time input.
Time 1: 1255
Time 2: 1305
0 hours and 10 minutes.
also How would you restrict the time input from 0-23 for the first two characters and from 0-59 with the next two characters?