Question: 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](https://i.stack.imgur.com/HF4UX.jpg)](https://i.stack.imgur.com/HF4UX.jpg)
[![enter image description here](https://i.stack.imgur.com/umPNP.jpg)](https://i.stack.imgur.com/umPNP.jpg)

Answer: 
Just cut the code from eclipse save the file and then open compose gmail and paste it and copy same come back to eclipse and paste and save the file.
all the problematic spaces can be quickly removed using the Find/Replace dialog, select one of the red spaces then insert a normal space in the "Replace with" textfield and finally "Replace All"