今天用到了,发现不会,随手谷歌之,整理如下。

//Map是接口,刚才在那new Map,汗颜
Map<Character,Integer> mm = new HashMap();
//Iterator也是接口
Iterator<Character> iter = mm.keySet().iterator();
while(iter.hasNext()) {
	char key = iter.next();
	//do sth
}

相关文章:

  • 2022-12-23
  • 2021-08-15
  • 2021-08-15
  • 2022-01-01
  • 2021-11-03
  • 2021-08-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-31
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案