System.out.println("Please enter the minute(s) that you finished on (MM): ");
endMin = Integer.parseInt(input.nextLine());
When i put in "00" as an input for minutes, it only stores "0" in the variable.
System.out.println("Please enter the minute(s) that you finished on (MM): ");
endMin = Integer.parseInt(input.nextLine());
When i put in "00" as an input for minutes, it only stores "0" in the variable.
In order to do that you will want to keep the number input as a String. You already do that, so in order to also have an int you can actually work with you could have endMin
remain a String (instead of converting it to an int) and something like endMinInt
be that value converted to an int. That way you can still do the calculations you need, but you can also tell the user exactly what they entered later on (which is the only reason I can think of why this would be worth doing)
String endMin;
int endMinInt;
System.out.println("Please enter the minute(s) that you finished on (MM): ");
endMin = input.nextLine();
endMinInt = Integer.parseInt(endMin);