Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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. toStringStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started