📜  java join list as string - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:15.984000             🧑  作者: Mango

代码示例1
List list = Arrays.asList("a","b","c");
String result = String.join(",", list);

System.out.println(result);        //prints a,b,c