for (Map.Entry<String, String> entry : map.entrySet()) {
    System.out.println("key= " + entry.getKey() + " and value= " + entry.getValue());
 }

 

 

   for (String key : map.keySet()) {
    System.out.println("key= "+ key + " and value= " + map.get(key));
   }

 

相关文章:

  • 2021-12-10
  • 2021-06-11
  • 2022-12-23
  • 2021-09-20
  • 2018-01-24
  • 2021-09-20
  • 2021-12-31
猜你喜欢
  • 2022-01-19
  • 2022-02-07
  • 2021-09-29
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案