Syntax error, parameterized types are only available if source level is 1.5 or greater
------解决方案--------------------
Eclipse->Windows->Preferences->Java->Installed JREs
------解决方案--------------------
右键你的工程--》 Properties-->java compiler jdk compliance