文章目录 如何将Map转为List 如何将Map转为List //该例子是在工作中遇到的一个需求,将map中的符合条件的value转为list List<String> empNoList = empMap.entrySet().stream(). filter(map -> Integer.parseInt(map.getValue())>=requireCourseCount) .map(map -> map.getKey()).collect(Collectors.toList());