case MONDAY: TUESDEY: System.out.println("MON/TUE"); break;
-> "TUESDAY" not "TUESDEY"
because below you mention nothing about this "TUESDEY"
"Now, for TUESDAY, do you see a matching case? No. TUESDAY: is not a case statement. TUESDAY is just a label applied to the print statement."
[HD-OCP17/21-Fundamentals Pg 293, Sec. 12.3.4 - using-switch-with-enums]
Moderator: admin
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD-OCP17/21-Fundamentals Pg 293, Sec. 12.3.4 - using-switch-with-enums]
Right. Should be fixed.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 31 guests