Compilation error in code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

7th Jun 2018, 3:23 AM
Dbug
Dbug - avatar
5 Answers
+ 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
7th Jun 2018, 4:03 AM
Fermi
Fermi - avatar
+ 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.
7th Jun 2018, 3:53 AM
Gopal Gautam
Gopal Gautam - avatar
+ 1
Try including your import statements.
7th Jun 2018, 3:59 AM
Jose Ayala
Jose Ayala - avatar
0
thanks all members for helping
8th Jun 2018, 4:59 PM
Dbug
Dbug - avatar
0
thanks all for replying
9th Jun 2018, 1:16 AM
Dbug
Dbug - avatar