      1  public class DayTester

      2  {

      3     public static void main(String[] args)

      4     {

      5        Day today = new Day(2010, 2, 15); // February 15, 2010

      6        Day later = today.addDays(30);

      7

      8        System.out.println(later.getYear());

      9        System.out.println("Expected: 2010");

     10        System.out.println(later.getMonth());

     11        System.out.println("Expected: 3");

     12        System.out.println(later.getDate());

     13        System.out.println("Expected: 13");

     14        System.out.println(later.daysFrom(today));

     15        System.out.println("Expected: 30");

     16     }

     17  }