Syntax error, syntax expected name

It means grammatical error;

Carefully check the code you write. If you are creating entity class, see if it is missing; if you are creating method, check the position of () and {}.

They are all small problems, which can be found by careful examination.

Read More: