String[] strArray = {"123", "456", "789"};
List<Long> LongList = Arrays.stream(strArray).map(Long::parseLong).collect(Collectors.toList());
01-05
583
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-09
7610
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
String[] strArray = {"123", "456", "789"};
List<Long> LongList = Arrays.stream(strArray).map(Long::parseLong).collect(Collectors.toList());