Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse syntax error on tokens, delete these tokens

Tags:

java

eclipse

I am new to Eclispe. I just met a problem. I copy a piece code from a website into the Eclipse. the IDE editor prompt that: Syntax error on tokens, delete these tokens

I am sure that my code is OK. If I manually input the code, it's ok. I open the java file from Notepad++. I found there are some blank spaces(green highlighted). If I remove the green highlighted blanks, the Eclipse errors is gone.

I post some images. I googled for a while, but I didn't find useful information, so I seek help here.

What are those blank spaces? How to eliminate the error when copying? Why does this happen?

enter image description here enter image description here

like image 848
gfan Avatar asked Oct 24 '25 04:10

gfan


1 Answers

Please remove red space, and press Tab again.

like image 106
Dang Cong Duong Avatar answered Oct 26 '25 16:10

Dang Cong Duong