0

Switch is stuck

When I get to the third test case on the switch problem, 8 is input, my solution and Sololearns are the same but it won’t go on to the next test case. It also appears the check mark has turned to green in the background. Any fixes? https://code.sololearn.com/chZS9Q96x97q/?ref=app

11th May 2022, 4:57 PM
Miles425
8 Answers
+ 3
Miles425 Check spelling of "surprised"
11th May 2022, 5:12 PM
A͢J
A͢J - avatar
0
Miles425 , can you post the whole description of the task?
11th May 2022, 5:09 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
Is your spellings are correct according to task description? Do check again..
11th May 2022, 5:09 PM
Jayakrishna🇮🇳
Jayakrishna🇮🇳 - avatar
0
Code Coach Problem “Emotion Detector”at end of default lesson(The switch Statement 15.1). Four cases are given and then default. The first two cases come up correct but the third cases asks to check answer; my answer and Sololearns agree as does the solution (as far as I can tell). Yes, I have checked syntax, spelling, parsing, and anything else I can think of.
11th May 2022, 7:14 PM
Miles425
0
I think it should work. Try again... Else Check with this: System.out.print("Unknown emotion.");
11th May 2022, 7:45 PM
Jayakrishna🇮🇳
Jayakrishna🇮🇳 - avatar
0
Thank you. Good lesson in being exact for beginner!
14th May 2022, 4:52 PM
Miles425
0
Is it solved? Just curious.. May I know what fixed there?
14th May 2022, 5:32 PM
Jayakrishna🇮🇳
Jayakrishna🇮🇳 - avatar
0
Jayakrishna Yes it’s fixed. It was the spelling of surprised, which I kept overlooking even after being told to check. Confused me why it mattered at first because it came after the correct choice had executed. Thanks, again.
15th May 2022, 5:48 PM
Miles425