美文网首页
map中取出key和value

map中取出key和value

作者: arryluo | 来源:发表于2017-05-06 11:40 被阅读0次

Mapmap=new HashMap<>();map.put("a", "a");map.put("b", "b");map.put("c", "c");map.put("d", "d");Set>st=map.entrySet(); Iterator>ig=st.iterator();

while(ig.hasNext()){

System.out.println(ig.next());

}

相关文章

网友评论

      本文标题:map中取出key和value

      本文链接:https://www.haomeiwen.com/subject/mrvetxtx.html