Question: Write a program in java that creates a String array with the values Winter, Spring, Summer, Fall. Using an appropriate prompt, input from the keyboard

Write a program in java that creates a String array with the values "Winter", "Spring", "Summer", "Fall". Using an appropriate prompt, input from the keyboard (data validation IS required) a value between 1 and 4 with 1 to indicate "Winter", 2 to indicate "Spring", 3 to indicate "Summer", and 4 to indicate "Fall" . Use this value in a CASE statement to print the name of the requested season. (Remember that subscripts for arrays start at 0, not 1). I need this code in 12 minutes need to put turn this in class.

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!