01
02
03
04
05
06
07
08
09
10
11
12
13
package horstmann.ch03_day1;
public class DayTester
{
  public static void main(String[] args)
  {
    Day today = new Day(2001, 2, 3); // February 3, 2001
    Day later = today.addDays(999);
    System.out.println(later.getYear()
        + "-" + later.getMonth()
        + "-" + later.getDate());
    System.out.println(later.daysFrom(today)); // Prints 999
  }
}