Map map = new HashMap();
Iterator it = map.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
Object key = entry.getKey();
Object value = entry.getValue();
}
Java如何遍历Map的所有的元素
最新推荐文章于 2023-09-27 14:33:24 发布