// Driver for the Time convert program import java.io.*; public class Driver { public static void main(String [] args) throws IOException { BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter a military time (0000-2359): "); int military = Integer.parseInt(kbd.readLine()); Time t = new Time(military); // When we print the time, the nice thing is that the object "t" already // has a toString() method, and when we print the object, toString() // gets called implicitly. System.out.println("The civilian time is " + t); } }