取出Map中的对象

LinkedHashMap<String,Double> a=new LinkedHashMap<String,Double>();

Iterator it1 = a.entrySet().iterator();  

while (it1.hasNext()) {  
  Map.Entry entry1 = (Map.Entry) it1.next();  

  Object key1 = entry1.getKey();  

   Object value1=entry1.getValue();

}

你可能感兴趣的:(取出Map中的对象)