Lambda将List<Long>转换成List<String>出现Lambda can be replaced with method reference
0.说明将Long转换为字符串的方式有很多种,如toString,valueOf,拼接字符串,newString()等。1.将String集合转换成Long集合Listids=Arrays.asList("1","2","3","4","5");Listcollect=ids.stream().map(Long::parseLong).collect(Collectors.toList());2.