Eclipse .java File Syntax error, parameterized types are only available if source level is 1.5 or

Error in Eclipse. Java file:
Syntax Error, Parameterized Types are only available if source level is 1.5 or greater
This is a compiler version of the problem, the solution:
1. Right click project –& GT; Properties–> Java Compiler–> Remove the Use Compliance from Executeion Enveronment · check box, and change Compiler ·· to more than 1.5

2, Windows – & gt; preferneces–> JAVA–> compiler–> The window on the right “Compiler Compliance level” is set to more than 1.5

Read More: