| 
 
| 复制代码public class Demo1 {
        public static void main(String[] args) {
                Map<String, Integer> map=new HashMap<String, Integer>();
                map.put("huaqiangu", 23);
                map.put("baizihua", 234);
                map.put("tangbao", 13);
                map.put("dongfang", 20);
                Set<Map.Entry<String, Integer>> set=map.entrySet();
                Iterator<Map.Entry<String, Integer>> it=set.iterator();
                while(it.hasNext()){
                        Map.Entry<String, Integer> mapentry=it.next();
                        String key=mapentry.getKey();
                        Integer value=mapentry.getValue();
                        System.out.println(key+"--"+value);
                }
        }
}
其中Set<Map.Entry<String, Integer>> set=map.entrySet();中的Map.Entry<String, Integer>到底怎么理解啊?
 算是一个类吗?
 | 
 |