问答详情
源自:2-7 购物车类的设计

导入老师的项目后报错 提示Map找不到 是怎么回事??

 当把商品加入购物车是报错了

java.lang.Error: Unresolved compilation problems:
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
Map.Entry cannot be resolved to a type
The method entrySet() from the type HashMap<Items,Integer> refers to the missing type Map$Entry
Map.Entry cannot be resolved to a type
是不是我缺Map包 ,需要下载导入吗? 

提问者:慕哥9071977 2016-05-15 19:24

个回答

  • Uauslman
    2016-05-15 22:03:29

    直接导包import java.util.Map;