map的四种遍历方式

map是java中很是经常使用的一种数据结构,但map不一样于set和list都继承自Collection接口。java 因此map没有实现Collection的Iterator 方法,自身没有迭代器来遍历元素。数据结构 构造一个mapspa Map<String, String> map = new HashMap<String, String>(); map.put("001", "hel
相关文章
相关标签/搜索