0

What is wrong in it

I tried to get the input as string but it doesn't seem to . It says , curly brackets are Missing. https://code.sololearn.com/cJ9D8X65gg6I/?ref=app

7th May 2020, 6:05 AM
Kumar Mangalam
Kumar Mangalam - avatar
3 Réponses
+ 1
Line No : 7 , sc.nextLine() not newLine and Line No. 10 , case "Monday": "c" of case should be small and Monday is a string, so it should be enclosed in double qoutes
7th May 2020, 6:21 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
1. Write „case“ in small letters. 2. Put „Monday“ in quotation marks because it is a string. 3. Use sc.nextLine() instead of sc.newLine().
7th May 2020, 6:22 AM
Michael
Michael - avatar
0
in switch “Case” is case, Monday in quotes. in Scanner when you take the input,the method is “nextLine()” nor newLine()
7th May 2020, 6:25 AM
Jobemar Arreaza
Jobemar Arreaza - avatar