您的位置:首页 > 大数据 > 人工智能

Syntax error, parameterized types are only available if source level is 1.5

2017-11-29 00:00 666 查看
摘要: 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 <>

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 <>

解决方法:

1,在eclipse中菜单Window----preferences----java-----compiler把右边中的Compiler compliance level改为1.6
2,右击项目,修改properties,找到java compiler修改compiler compliance level为1.6
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Java
相关文章推荐