Question: I need help in java please indow Help @m*70% M) Mon 335 AM a 4) https.//docs.oracle.com/javase/tutorial/java/iavaOO/constructors.html 2) An enum (enumeration) type is a special Java

I need help in java please  I need help in java please indow Help @m*70% M) Mon

indow Help @m*70% M) Mon 335 AM a 4) https.//docs.oracle.com/javase/tutorial/java/iavaOO/constructors.html 2) An enum (enumeration) type is a special Java class to hold constants. By convention, constants in Java are always in FULL CAPS. Essentially, objects of the enum class are each of the possible constants. See the Month java enum type provided. We can use this Month enum when need to use months lava prowdes some pre-bulit methods in every enum ciss These incdude toString0 will return a string representation of the constant definition valueof(String) will return the enum object corresponding to the input string (if possible). values0 will return an array containing all possible constants (in the order that they appear in the enum Run the UseMonthEnumType program to see how these methods used. Add a static method to the UseMonthEnumType program. The method should look like public statie int days (Month month) The method will have a "switch* statement that will determine the number of days in the provided (input) month The function will then return this number. Don't worry about leap years (i.e., FEBRUARY will always have 28 days) More Reading https://d docs.oracle.com/javase/tutorialljavaljavaOO/enum.html http:/tutorials jenkoy.com/java/enums.html

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!