// Page 146-148 public class TimeTypeDemo { public static void main(String[] args) { TimeType x = new TimeType(); TimeType now = new TimeType(); x.set(8, 30, 1); now.set(8, 30, 2); x.increment(); if (x.equal (now)) System.out.println("Same time.\n"); else System.out.println("Different time.\n"); } }