+ 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

11th Mar 2018, 5:45 PM
Jaren Dogan
Jaren Dogan - avatar
4 Answers
+ 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/
11th Mar 2018, 7:28 PM
Igor Makarsky
Igor Makarsky - avatar
+ 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.
11th Mar 2018, 5:53 PM
Igor Makarsky
Igor Makarsky - avatar
0
Aren't you suppose to use break statement in each case?
11th Mar 2018, 6:33 PM
Jaren Dogan
Jaren Dogan - avatar
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.
11th Mar 2018, 6:36 PM
Jaren Dogan
Jaren Dogan - avatar