List<String> strs = Arrays.asList("aaa", "bbb", "ccc", "ddd");
String listToStr= strs.stream().collect(Collectors.joining(","));
参考:
https://blog.csdn.net/weixin_46082526/article/details/108768463