后端字符串转数组JAY.LIN 收录于 Java 2023-03-16 约 16 字 预计阅读 1 分钟 目录 后端字符串转数组 String[] idArr = ids.split(";"); List<Long> idList = Arrays.stream(idArr).map(Long::parseLong).collect(Collectors.toList());```Please enable JavaScript to view the comments powered by Giscus.