[resolved] error: Java: illegal character: ‘\ ufef’ or error: Java: class, interface or enum required

Error: Java: illegal character: ‘\ufeff’
Error: Java: requires class, interface or enum

this error is caused by the coding problem
directly converts the encoding format to GBK in the lower right corner of idea and then converts it to utf-8.

Read More: