I have to convert this Java code to pseudocode. The program accepts 2 times and returns the time span in minutes.
In Java we have int hr1_int
and int hr2_int
so what they will be in pseudo code? And the String , sub-string, parseInt, try-catch structure also what will they be in pseudo?
try
{
hr1_int = Integer.parseInt(hr1);
min1_int = Integer.parseInt(min1);
}
catch(NumberFormatException e)
{
System.out.println("The input time is wrong. Please reinput");
continue;
}
hr1 = time1.substring(0,2);