List 转 String (用分隔符隔开)
使用for 循环 + StringBuilder 的 方式就不记了,
写一种相对简约一点的做法:
public String listToString(List list, char separator) {
return org.apache.commons.lang.StringUtils.join(list, separator);
}
标签:java,String,list,List,separator,字符串
From: https://www.cnblogs.com/aaacarrot/p/17097598.html