摘要: java中的所有map都实现了Map接口,以下方法适用于任何map实现(HashMap, TreeMap, LinkedHashMap, Hashtable, 等等)。 1 HashMap<Integer, String map = new HashMap< (); 2 map.put(1, "ja 阅读全文
posted @ 2019-09-09 19:49 NoviceLearning 阅读(544) 评论(0) 推荐(0) 编辑