(Solved) : 1 Create New Enum Called Dayoftheweek 2 Initialize Th 7 Days Week 2 Letter Abbreviations F Q29008324 . . .
1. Create a new enum called
DayOfTheWeek
2. Initialize it with th 7 days of the week (2letter abbreviations are fine)
3. In the main method create a varaible calledfirstDay. It is of the type DayOfTheWeek.
Assign it the appropriate value.
4. Print the variable firstDay
followed by an empty line
5. Use a loop to list all enum constants ofclass
DayOfTheWeek
separated by a single blank
When you are done add an empty line (see output)
Output:
First day: SU
SU MO TU WE TH FR
Expert Answer
Answer to 1 Create New Enum Called Dayoftheweek 2 Initialize Th 7 Days Week 2 Letter Abbreviations F Q29008324 . . .
OR