JAVA Map转List

将Map的key转成List:

List<String> mapKeyList = new ArrayList<String>(map.keySet());   

将Map的Value转成List:

List<String> mapValueList = new ArrayList<String>(map.valueSet());   
    原文作者:DUMP_Cong
    原文地址: https://blog.csdn.net/DUMP_Cong/article/details/77479353
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞