Question: pls use java as easy as possible, since I am a first-year students P1: Enumerated Types and Switch Statements Create a class containing an enum

pls use java as easy as possible, since I am a first-year students

P1: Enumerated Types and Switch Statements

Create a class containing an enum and a main method. The enum will be called Season and will have constants WINTER,SPRING,SUMMER,FALL.

In the main method, ask the user to enter the current season. Create a Season variable called currentSeason, and assign one of the enum constants to the variable based on the user input. Then, using a switch statement, print out a clothing recommendation based on the value of currentSeason. For example, if the constant is WINTER print "Wear a coat, hat and mitts.".

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!