Question: (I posted this same question but got an error where with the int month please check to see that the code works ) Write a

(I posted this same question but got an error where with the int month please check to see that the code works )

Write a Java program, called Seasons, which contains a static method called printSeason() which takes no input parameters and returns nothing. The printSeason() method should get the user to input a single integer value between 1 and 12 representing a month of the year and print a message saying what Season it is. (see table below for Months and Seasons). To test the printSeason() method you should call it from the main method.

Month Number Representation Season

January 1 Winter

February 2 Winter

March 3 Spring

April 4 Spring

May 5 Spring

June 6 Summer

July 7 Summer

August 8 Summer

September 9 Autumn

October 10 Autumn

November 11 Autumn

December 12 Winter

Sample Input 4

Sample Output April is in Spring

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!