Map.Entry<Integer ,Object> entry = (Entry<Integer ,Object>)iterator.next(); Object key=entry.getKey(); Object value=entry.getValue(); } 第一种: Map map = new HashMap(); Iterator iter = map.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.nex...