Java List<String>转List<Integer>
Java List转List方法一:List<Integer> intList = strList.stream().map(Integer::parseInt).collect(Collectors.toList());方法二:List<Integer> intList = strList.stream().mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());.