Am having trouble with this program. It is full of errors. How best can I run it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Am having trouble with this program. It is full of errors. How best can I run it?

https://code.sololearn.com/cmp2XAH9qT11/?ref=app

16th Aug 2017, 7:38 AM
Angel
Angel - avatar
5 Answers
+ 2
you forgot semi colon
16th Aug 2017, 9:29 AM
Gao Xiangshuai
Gao Xiangshuai - avatar
+ 2
alright @David! thanks alot
17th Aug 2017, 1:56 PM
Angel
Angel - avatar
+ 2
tnx Gao
17th Aug 2017, 1:58 PM
Angel
Angel - avatar
+ 1
you cant do a range like that using "case" in java why not use an if statement? i read that c++ lets you by using case 1..5:
16th Aug 2017, 8:39 AM
D_Stark
D_Stark - avatar
+ 1
@Gao its not that , range in case doesn't work in java as far as i know
17th Aug 2017, 5:52 AM
D_Stark
D_Stark - avatar