java基礎---集合Map

Map集合      HashMap、TreeMap 遍歷集合:    方式一:hashMap.keySet()   方式二:hashMap.entrySet() ,可以在遍歷的過程中,修改集合內容    方式三:foreach  //  for(Map.Entry<String,String> map:hashMap.entrySet()) HashMap<String,String > has
相關文章
相關標籤/搜索