+ 1

What is wrong with this Code?

On the Pc the code works but here it doesnt https://code.sololearn.com/cuIlIv58vvfk/?ref=app

27th Apr 2018, 6:19 AM
Stefan Mueller
Stefan Mueller - avatar
1 Answer
+ 5
You have pasted this code directly from your PC's IDE, thus it has some illegal characters that SoloLearn's compiler doesn't support. You have to retype the code at the Code Playground again. To make it work. Remember to import the java.util package while typing and you're missing a semi-colon ; at line 46. There are a bunch of closing braces missing, as well. Stefan Mueller I've done it for you, https://code.sololearn.com/cKi5BKW2AFDN/?ref=app
27th Apr 2018, 6:38 AM
Dev
Dev - avatar