Question: Please use the Swich Statement in Java Program 3: Days of a month (MonthDays class) Write a Java class named MonthDays that prompts the user
Program 3: Days of a month (MonthDays class) Write a Java class named MonthDays that prompts the user to enter an integer with range of 1 through 12 representing January till December respectively. Based upon the input, display the number of days for that month accordingly. You are required to use switch statement to do this. Outputs: Please enter an integer (1-12): 5 May has 30 days
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
