List<String> list = Arrays.asList("a","b","c","d");
System.out.println(list);
String aa=list.stream().collect(Collectors.joining("、"));
String bb=String.join("、",list);
System.out.println(aa);
System.out.println(bb);
// String转List
String[] split = aa.split("、");
System.out.println(split);
List<String> strings = Arrays.asList(split);
System.out.println(strings);
List<String>转String,自定义符号,附反转
最新推荐文章于 2024-03-04 13:53:41 发布
关键词由CSDN通过智能技术生成