public class SpeedDating
extends java.lang.Object
| Constructor and Description | 
|---|
SpeedDating()
Create an empty SpeedDating object
 (this is known as a "default" constructor) 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Date | 
discoverColumbusDay(int year)
Computes and returns the Date on which Columbus Day will fall 
 in a given year. 
 | 
Date | 
getHalfWayDate(Date start,
              Date end)
Returns the date that lies midway between two dates. 
 | 
void | 
haveTenHappys(int month,
             int day,
             int startYear)
Prints the day of the week (e.g. 
 | 
public SpeedDating()
public void haveTenHappys(int month,
                          int day,
                          int startYear)
month - the month of the birthdayday - the day of the birthdaystartYear - the first of the 10 consecutive yearspublic Date discoverColumbusDay(int year)
year - the year for which to compute the date of Columbus Daypublic Date getHalfWayDate(Date start, Date end)
start - the earlier of the two datesend - the later of the two dates