字符串转list

String a="1,2";
List<Integer> strings = Stream.of(a.split(",")).map(Integer::parseInt).collect(Collectors.toList());
原文地址:https://www.cnblogs.com/yanan7890/p/14582383.html