You will modify the SpeedDating class, but only by completing the method bodies of the three methods already declared. Do not add any other methods or instance variables to the SpeedDating class, do not modify the constructor, and do not modify the method declarations (“headings”) provided! (Not necessary!)
Complete the SpeedDating Class
Write the method bodies for each of the 3 methods declared in SpeedDating. Study the method declarations and documentation so that you understand what each method does.
it must use one of the Java loops. Nested loops are not necessary.
Do not modify the method declarations (“headings”) in any way!
Note that, by law, Thanksgiving occurs on the 4th Thursday of November
Write a Test Class for Your SpeedDating Class
Your test class will have a main method that does the following:
Create a SpeedDating object
Have the user enter a year, and call the beMyValentine method to print the day of the week on which Valentine’s Day will occur for the next 10 years, starting with the input year. Valentine’s Day (Formerly, Saint Valentine’s Day) is celebrated on February 14th.
Have the user enter another year, call the discoverColumbusDay method, and print the Date object returned. Print the Date in the main method, not in SpeedDating.
Have the user enter the data (month, day, and year) for two Date objects - an earlier date and a later one. Create the two Date objects, call the getHalfWayDate method, and print the Date object returned. Print the Date in the main method, not in SpeedDating.
(Make sure your implementations of the SpeedDating methods have sufficient “internal” documentation)