如何相互转换逗号分隔的字符串和List ---https://blog.csdn.net/yywusuoweile/article/details/50315377
方法 2: 利用Guava的Joiner
[java] view plain copy
- List<String> list = new ArrayList<String>();
- list.add("a");
- list.add("b");
- list.add("c");
- String str = Joiner.on(",").join(list);
原文地址:https://www.cnblogs.com/czlovezmt/p/9207099.html
时间: 2024-11-02 21:29:18