java: error illegal character \8221

While executing java program, some users usually get this kind of error - illegal character \8221.  This error will not occur if the program is typed, it occurs when program is copied from document or pdf into the editor or IDE.


Double quotes and single quotes are not supported when it is copied from a document, pdf and pasted in editor

So, delete the double or single quote and type again.

That will solve this kind of errors.


Some of them will get this error, when executing the program that have been copied from our site.