class Hw3 { public static void main (String[] args) { // ADD your own experimentation with the class // Create objects and calls to their methods // You may find this site useful //http://www.epochconverter.com/date-and-time/daynumbers-by-year.php?year=2013 } } class Date { //Class constants: TO COMPLETE and TO FIX // ---------------------- //Each month names private static final String[] M_NAMES = {"January", "February", "March", "April"}; //Number of days in each month private static final int[] DAYS_IN_MONTH = {31, 28, 31, 30}; //Number of days in a year and in a leap year private static final int DAYS_IN_YEAR = 365; private static final int DAYS_IN_LEAP_YEAR = DAYS_IN_YEAR+0; //Format is either American or English public static final int AM = 0; public static final int EN = 0; //Instance variables to hold the values of a date private int day, month, year; private int format = AM; //COMPLETE THE 2 CONSTRUCTORS //Constructor with day, month and year parameters public Date(int d, int m, int y) { } // Constructor with a format parameter //public Date(int d, int m, int y, int f) { //} //Returns the String for the date based on its format value //with the month abbreviated public String toString() { return null; } //Returns the String for the date based on its format value //with the month unabbreviated public String toStringLong() { return null; } //Set the format to either American or English public void setFormat(int f) { } //Returns true if the date object is a leap year public boolean isLeapYear() { return false; } //Returns the day number in the year (out of 365/366) this date is. // January 02, 1980 -> Day 2 // March 23, 2016 -> Day 83 public int dayNumber() { return 0; } //Returns the number of days remaining in the year from this date. // January 10, 2013 -> 355 days remaining // March 23, 2016 -> 283 days remaining public int daysRemaining() { return 0; } //Advances this date forward by one day public void advanceDay() { } //Compares two dates to determine which comes earlier. //Returns // -1 if this date is earlier than the argument date, d, // 1 if this date is later than d // 0 if the two dates are the same (logical equivalent) public int compare(Date d) { return -1; } public boolean equals(Date d) { return false; } //Returns the number of days between this date and the parameter date: // as a positive number if this date comes after the parameter date // as a negative number if this date comes before the parameter date. public int daysTo(Date d) { return 0; } }