Java 使用Stream流 将 List 转String逗号分隔

String collect = list.stream().map(String::valueOf).collect(Collectors.joining(","));