Compilation error in code | Sololearn: Learn to code for FREE!

0

Compilation error in code

Q1 #This is my first code in solo learn.. it is working on net beans.. plz tel me whats the problem in here I have copy-paste this code from my email Q2 # Also can I code in desktop(Netbeans) and post it in challenges ? i mean not player vs player.. the challenges practice code (the sharpening skills section) https://code.sololearn.com/cpf4lib98V5H/?ref=app

6/7/2018 3:23:35 AM

Dbug

5 Answers

New Answer

+5

Gopal is right. Viewing your code on the desktop site reveals a lot of Unicode. To fix this, simply retype your code into Code Playground, or paste your code in an environment which nullifies the invisible characters. If this is the result of copypasting from Netbeans, I suggest getting another IDE. IntelliJ IDEA, for instance, never gave me such issues. Also, for the love of all that is holy would you please mind enforcing proper indentations... https://code.sololearn.com/cCdN8rTTYFD8/#java

+4

I think you have copy pasted your code from somewhere and some hidden illegal Unicode characters are in your code. Also you're missing curly bracket to close your pattern_one method.

+1

Try including your import statements.

0

thanks all members for helping

0

thanks all for replying