String l = "63, 47, 51, 35, 36, 52, 37, 53, 38, 54, 39, 55, 40, 56, 41, 57, 42";
List<Integer> list = Arrays.asList(l.split(", ")).stream()
.map(s -> Integer.parseInt(s)) //.map(Integer::valueOf)
.collect(Collectors.toList());
String l = "63, 47, 51, 35, 36, 52, 37, 53, 38, 54, 39, 55, 40, 56, 41, 57, 42";
List<Integer> list = Arrays.asList(l.split(", ")).stream()
.map(s -> Integer.parseInt(s)) //.map(Integer::valueOf)
.collect(Collectors.toList());
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。