Map,可用常规的for遍历

    Map<String, String> bmarks = new HashMap<>();
    for (Map.Entry<String, String> entry: bmarks.entrySet()) {
        System.out.println(entry.getKey() + " : " + entry.getValue());
    }

其他遍历方式,参考:http://blog.csdn.net/tjcyjd/article/details/11111401

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2021-09-10
  • 2022-12-23
  • 2021-09-20
  • 2021-09-28
  • 2021-07-07
猜你喜欢
  • 2021-09-20
  • 2021-10-25
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案