java集合类中Map的遍历方式

Map集合的几种遍历方式: public class TestMap { public static void main(String[] args) { Map<Integer,String> map=new HashMap<Integer,String>(); map.put(24,"科比"); map.put(23,"詹姆斯"); map.put(3,"韦德"); map.put(0,"维斯
相关文章
相关标签/搜索