据我所知,一些可能的转换方式包括:
有没有像上面那样的转换来将字符串列表转换为字符列表的转换?
List<String> stringList = integerList.stream().map(Object::toString)
.collect(Collectors.toList());
并且
List<Integer> integerList = stringList.stream()
.map(Integer::valueOf).collect(Collectors.toList());
有没有像上面那样的转换来将字符串列表转换为字符列表的转换?