You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I read your chapter on Enumerations, In the section of enums in switch Statements, original text:the compiler will complain if you don’t have a default—even if you’ve covered all the possible values of the enum.
The question is as follows:
when I don't use a default,my compiler doesn't give any error .
My java version is "17.0.1" 2021-10-19 LTS
The text was updated successfully, but these errors were encountered:
Bruce,
When I read your chapter on Enumerations, In the section of enums in switch Statements, original text:the compiler will complain if you don’t have a default—even if you’ve covered all the possible values of the enum.
The question is as follows:
when I don't use a default,my compiler doesn't give any error .
My java version is "17.0.1" 2021-10-19 LTS
The text was updated successfully, but these errors were encountered: