使用stream流连接两个list
生命如同寓言,其价值不在于长短,而在于内容—— 塞涅卡
List<Integer> integerList = Arrays.stream(new int[]{1, 2, 3}).boxed().collect(Collectors.toList()); |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 蒋立坤的博客!
评论
Va
生命如同寓言,其价值不在于长短,而在于内容—— 塞涅卡
List<Integer> integerList = Arrays.stream(new int[]{1, 2, 3}).boxed().collect(Collectors.toList()); |