+ 1
Can someone help me with my switch(statement)?
my default statement, the system.out.println statement isn't showing. Also using enums by the way because I was practicing with enums. Thanks whoever helps me and have a good day. https://code.sololearn.com/cB13Tehz05gx/?ref=app
4 Antworten
+ 27
So, what do you want to implement?
Please, describe the desired output.
And read the following lesson, I think you misunderstood something.
https://www.sololearn.com/learn/Java/2145/
+ 26
It doesn't show up because you use the break statement in each case.
Try to remove the "case SUNDAY" block and the default block will execute.
0
Aren't you suppose to use break statement in each case?
0
I think it fixed it by removing break on Saturday. It still says the statement or output from the cases too. it says the outputs from both.