ya the difference is always at max differed by seconds................and the result can be anything milliseconds or seconds........and its a comma between seconds and milliseconds not a '.' ..... kindly suggest something
You can start by checking out the java.util.GregorianCalendar class. You'll need to study it a bit to understand how it operates with its own fields such as HOUR, MINUTE, SECOND, MILLISECOND, the compareTo() method. If the times are presented as strings, then you'll also need to look at String.split() to get the various elements of the time.
public class GrossmontBank
//class variables (global - accessible throughout this class)
//scanner object to be used throughout
private static Scanner input = new Scanner(System.in);