list集合转换为String

List<String> collect = Arrays.asList("aaa","ddd","dd");
String join = String.join(",", collect);
System.out.println("join = " + join);
posted @ 2024-07-18 19:30  多多指教~  阅读(1)  评论(0编辑  收藏  举报