/** * Matt Kretchmar * April 1, 2006 * Program10.java * This program tests the TimeStamp.java class which is the focus * of this programming assignment. */ import java.util.Scanner; class Program10 { public static void main (String args[]) { TimeStamp t1 = new TimeStamp(14,20); // If you only implement Part 1, keep the second line below // commented out. If you implement Part 2, switch the two lines // below so that the String constructor is used instead. TimeStamp t2 = new TimeStamp(12,10); //TimeStamp t2 = new TimeStamp("12:10"); TimeStamp d = t1.difference(t2); System.out.println(t1 + " - " + t2 + " = " + d); d = t2.difference(t1); System.out.println(t2 + " - " + t1 + " = " + d); } }