Multiple markers at this line
– Syntax error, parameterized types are only available if source level is 1.5 or greater
– Incorrect number of arguments for type HashMap<K,V>; it cannot be parameterized with
arguments <>
Solution:
1,In eclipse menu Window—-preferences—-java—–compiler change the Compiler compliance level to 1.6 in the right
2,Right click the project, modify properties, find java compiler modify the compiler compliance level to 1.6