Sting 轉List<String>轉List<Integer>

H_L_Y發表於2020-12-25
  List<String> list = Splitter.on(",").splitToList(ids);
        List<Integer> collect = list.stream().map(Integer::parseInt).collect(Collectors.toList());

相關文章