+ 3

This anyone knows why this code works in the real java and not on sololearn ?

it says compilation error on sololearn https://code.sololearn.com/cHzi7JU3M4hG/?ref=app

21st Apr 2018, 6:04 PM
Leon Yang
Leon Yang - avatar
8 Respostas
+ 6
Confirmed, once I removed all the invisible characters the code compiles and runs fine on the SL playground.
21st Apr 2018, 6:30 PM
ChaoticDawg
ChaoticDawg - avatar
+ 4
The problem isn't from the inputs, in fact I only see 1 input that is needed, but rather that you most likely copied and pasted the the code from your editor which included a bunch of invisible characters that are causing the compilation error. Try typing it in and it looks like it should work.
21st Apr 2018, 6:21 PM
ChaoticDawg
ChaoticDawg - avatar
+ 4
Yes, when viewed from the website.
22nd Apr 2018, 1:43 AM
ChaoticDawg
ChaoticDawg - avatar
+ 4
works now!!
23rd Apr 2018, 3:26 PM
Leon Yang
Leon Yang - avatar
+ 3
thanks!I promise I did not plagerize this code!I programed it on my computer than copied and paste on solo learn
21st Apr 2018, 6:32 PM
Leon Yang
Leon Yang - avatar
+ 2
help!
21st Apr 2018, 6:09 PM
Leon Yang
Leon Yang - avatar
+ 2
thanks!!
21st Apr 2018, 6:12 PM
Leon Yang
Leon Yang - avatar
+ 2
is the invisible character a dot highlighted red
22nd Apr 2018, 1:41 AM
Leon Yang
Leon Yang - avatar