+ 5

Code coach question

Hi, I am trying to solve the code coach problem for java the switch case example. I cannot pass all the tests even though my answer outputs the correct answer. In my code I have......... Case 4: System.out.println("You are suprised"); break; default: System.out.println("I don't know that emotion."); } Does not work even though the output is correct to the code coach as well. Please fix this.

17th Oct 2020, 9:31 AM
J 12323123
J 12323123 - avatar
8 Antworten
+ 6
'suprised'? 🤔
17th Oct 2020, 9:32 AM
HonFu
HonFu - avatar
+ 5
Edited my question. That's not where I am getting stuck. I believe this is a bug
17th Oct 2020, 9:34 AM
J 12323123
J 12323123 - avatar
+ 5
Did not expect such a fast reply!! Still editing my question😊
17th Oct 2020, 9:36 AM
J 12323123
J 12323123 - avatar
+ 5
Legend! Great job. Still getting stuck of test case 5 for some reason. Thanks.
17th Oct 2020, 10:23 PM
J 12323123
J 12323123 - avatar
+ 5
Thanks. Typo error!!
18th Oct 2020, 2:04 AM
J 12323123
J 12323123 - avatar
+ 4
J 12323123 HonFu Bug found! The test case uses curly apostrophe: 👉 ’ 👈 instead of the common 👉 ' 👈 Copy-paste is the solution. https://en.m.wikipedia.org/wiki/Apostrophe
17th Oct 2020, 10:10 PM
Kevin ★
+ 3
Okay, was worth a try. 😅
17th Oct 2020, 9:35 AM
HonFu
HonFu - avatar
+ 2
Welcome. About test case 5: Read the challenge description again and you'll get surprised!
18th Oct 2020, 12:00 AM
Kevin ★