Question: Read the Java online API documentation for the split method in the String class and the In- teger.parselnt method in the Integer class. They may

 Read the Java online API documentation for the split method in
the String class and the In- teger.parselnt method in the Integer class.
They may be handy when dealing with inputs. Additional Requirements All methods

Read the Java online API documentation for the split method in the String class and the In- teger.parselnt method in the Integer class. They may be handy when dealing with inputs. Additional Requirements All methods must be public and all instance variables private. Do not use if statements to deter- mine the name of the weekday or month: declare two arrays of strings, one with the names of the months and the other with the days of the week, and use the appropriate indexes to obtain them when needed. Avoid any other unnecessary us ofif statements. Exhaustively, testyour program to ensure that it works. (Y may find the calendar generator at http:INwww.dayoftheweek.org ou helpful in verifying the correctness of your program.) Do not test your program using an invalid date or a date before 1583. Here are two sample program interactions: Listing 1: Sample Run 1. 1 Enter the first day of class 8/22/2016 3 First day of class: Monday, August 22, 2016 4 Last day of class: Monday. August 22, 2016 6 Enter the last day of class 12/8/2016 8 First day of class. Monday, August 22, 2016 9 Last day of class: Thursday, December 8, 2016 Listing 2 Sample Run 2. 1 Enter the first day of class 2/7/1900 3 First day of class Wednesday, February 7, 1900 4 Last day of class Wednesday, February 7. 1900 6 Enter the last day of class 1/19/1901 8 First day of class: Wednesday, February 7, 1900 9 Last day of class: Saturday. January 19. 1901

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!