+ 1

The switch Statements | Java

It gives such an error : ”Illegal start of expression” https://code.sololearn.com/ccIJo3El2M88/?ref=app

8th Dec 2020, 2:31 PM
hotto doggu
hotto doggu - avatar
8 Antworten
+ 2
hotto doggu , remove the equal sign "=" in every case statement. Look at the code. https://code.sololearn.com/c6w6FJ94MN8i/?ref=app
8th Dec 2020, 3:06 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 3
Hey you have to remove only the "=" sign after "case" keyword you ....should use it like ....case 1: case 2: etc. Hope it helps you.
10th Dec 2020, 7:27 AM
Abhinav Raj
Abhinav Raj - avatar
+ 2
hotto doggu , better post your code linked to the Playground and the whole description. Otherwise it is hard to guess the problem.
8th Dec 2020, 2:33 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
omgg! so sensible, thank you so much!! TheWh¡teCat 🇧🇬
8th Dec 2020, 3:10 PM
hotto doggu
hotto doggu - avatar
+ 1
hotto doggu , you are welcome.
8th Dec 2020, 3:13 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
ofccc it helps, thank u so much!! Abhinav Raj
11th Dec 2020, 2:18 PM
hotto doggu
hotto doggu - avatar
+ 1
hotto doggu,you are most welcome.
11th Dec 2020, 2:25 PM
Abhinav Raj
Abhinav Raj - avatar
0
I shared wrong link i guess, is it all right now? TheWh¡teCat 🇧🇬
8th Dec 2020, 2:59 PM
hotto doggu
hotto doggu - avatar