问题描述:将map中的values转换为list
错误做法:强制转换(会报错)
List<String> originalContractCodeList = (List<String)kpmcKpidMap.values();
正确做法:
List<String> originalContractCodeList = new ArrayList<>(kpmcKpidMap.values());标签:java,List,list,Collection,---,转换 From: https://www.cnblogs.com/ahulwj/p/17846236.html