Java - Time Difference Program Has an Unexpected Output

Hi everyone,

I’m working on what should be a fairly simple program in Java, to take in two times in military format, and calculate the difference between them. You can find the code here. I’ve commented it to make it a little easier to understand the purpose. Any help would be appreciated. Thanks.

Just needed to read my code over again. Had minutes calculating with hours. Fixed code found here.

1 Like