導入老師的項目后報錯 提示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包 ,需要下載導入嗎??
2016-05-15
直接導包import java.util.Map;