// This program creates objects of the version of the class Date that keeps // track of the number of calls of its methods. // Barry Cornelius, 19 June 2000 public class NoelProg { public static void main(final String[] pArgs) { final Date tNoelDate = new Date(2000, 12, 25); // 1 final int tDay = tNoelDate.getDay(); // 2 tNoelDate.setDay(tDay + 1); // 3 System.out.println(tNoelDate.toString()); // 4 System.out.println(tNoelDate); // 5 final Date tAnotherDate = new Date(2001, 12, 25); // 6 System.out.println(tAnotherDate); // 7 System.out.println("number of calls is: " + Date.getNumberOfCalls()); } }