|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nyu.scps.date.Date
public class Date
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 |
---|
public Date(int month, int day, int year)
month
- in the range 1 to 12 inclusiveday
- in the range 1 to number of days in month inclusiveyear
- can't be zeroMethod Detail |
---|
public void next()
public void next(int count)
count
- the number of days (must be non-negative)public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |