|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Date
keeps track of the date, provides methods for accessing and changing, incrementing and printing the date.
Field Summary | |
static int |
BASE_YEAR
default value for the year attribute. |
Constructor Summary | |
Date()
|
Method Summary | |
boolean |
setDate(int day,
int month,
int year)
Sets the date. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BASE_YEAR
Constructor Detail |
public Date()
Method Detail |
public boolean setDate(int day, int month, int year) throws LeapYearException
day
- The day in the month to be set (1-31).month
- The month to be set (1-12).year
- The year to be set (1900-2500).LeapYearException
- if the date is Feb. 29, and year is not a leap year..
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |