HashMap 遍历

public HashMap<String, TcatalinaLocalhost> FhashMapping = new HashMap<String, TcatalinaLocalhost>();

 

  FhashMapping.isEmpty()
  FhashMapping.size()
  FhashMapping.containsKey(key)
  FhashMapping.put(key, value)
  FhashMapping.get(key)
  FhashMapping.remove(key)

 

Iterator<Map.Entry<String, TcatalinaLocalhost>> iter = FhashMapping.entrySet().iterator();
while (iter.hasNext())
{
  Map.Entry<String, TcatalinaLocalhost> entry = iter.next();
  String key = entry.getKey();
  TcatalinaLocalhost val = entry.getValue();
}

 

posted @ 2015-11-22 21:00  codeskill_android  阅读(131)  评论(0编辑  收藏  举报