Question: Create a Weekday class in Java Weekday enumeration: The Weekday enumeration represents the five days of the week for courses. It should have the following

Create a Weekday class in Java

Create a Weekday class in Java Weekday enumeration: The Weekday enumeration represents

Weekday enumeration: The Weekday enumeration represents the five days of the week for courses. It should have the following public behavior. Method Description MONDAY, TUESDAY, WEDNESDAY, THURSDAY,FRIDAY Enumeration values for the five days of the week, declared in this order. This static method converts a string into the equivalent Weekday enum value. You should match the weekday's full name or its 'short name' (described below). case insensitively. So, for example, "Monday", "MONDAY". "MoNdAy". "M", or "m" would all match MONDAY. If the string does not match any enum value, throw an IllegalArgumentException. fromString (S) Returns a short 1-letter name for the given weekday value, which is the value's first letter (such as "M" for MONDAY) except for THURSDAY, which is "R". toShortName () Returns a text representation of this weekday value in title case; rather than the all-uppercase default, produce a string with its first letter capitalized and the remaining letters in lowercase. toString

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!