遍历map数组

来源:互联网 发布:nginx不支持pathinfo 编辑:程序博客网 时间:2024/06/05 16:34
// 遍历mappublic void printMap (Map map) {    List> list = new ArrayList>(map.entrySet());    for(Map.Entry mapping : list){    System.out.println(mapping.getKey() + ":" + mapping.getValue());    }}
原创粉丝点击