edu.nyu.scps.date
Class Date

java.lang.Object
  extended by edu.nyu.scps.date.Date

public class Date
extends java.lang.Object

Author:
nyuuser

Constructor Summary
Date(int month, int day, int year)
          Create a new Date object.
 
Method Summary
 void next()
          Move this Date object one day into the future.
 void next(int count)
          Move this Date object count days into the future.
 java.lang.String toString()
          Return a String showing the contents of this Date object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

public Date(int month,
            int day,
            int year)
Create a new Date object. This method is a constructor for class Date.

Parameters:
month - in the range 1 to 12 inclusive
day - in the range 1 to number of days in month inclusive
year - can't be zero
Method Detail

next

public void next()
Move this Date object one day into the future. If already at the last possible date, do nothing.


next

public void next(int count)
Move this Date object count days into the future.

Parameters:
count - the number of days (must be non-negative)

toString

public java.lang.String toString()
Return a String showing the contents of this Date object.

Overrides:
toString in class java.lang.Object
Returns:
a String in the format 12/31/2011