// This program creates an object of the class Date // and then sets its fields to represent Christmas Day 2000. // Barry Cornelius, 19 June 2000 public class NoelProg { public static void main(final String[] pArgs) { final Date tNoelDate = new Date(); tNoelDate.year = 2000; tNoelDate.month = 12; tNoelDate.day = 25; System.out.println(tNoelDate.year + "-" + tNoelDate.month + "-" + tNoelDate.day); } }