//map的遍历方法3 Iterator<String> it = map.keySet().iterator();
while(it.hasNext()){ System.out.println(map.get(it.next())); }
//map的遍历方法4 // Iterator it = map.values().iterator(); // while(it.hasNext()){ // String val = (String)it.next(); // System.out.println(val); // } }
}

相关文章:

  • 2022-12-23
  • 2019-11-09
  • 2021-10-29
  • 2021-06-24
  • 2022-02-28
  • 2021-08-15
  • 2021-08-15
  • 2022-01-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案