今天看了张老师的高新视频 也自己尝试了一下 也运行不了!
//java7的新特性:
Map map = {name:"zhangsan", age:7};
BeanUtils.setProperty(map, "name", "lhm");
错误提示如下:
Multiple markers at this line
- Syntax error on token ":", ,
expected
- age cannot be resolved to a
variable
- Map cannot be resolved to a
type
- Syntax error on token ":", ,
expected
- name cannot be resolved to a
variable |