Java把List转成以逗号分隔的字符串
private static <T> String parseListToStr(List<T> list){
String result = list.stream().map(o-> (String)"'"+o+"'").collect(Collectors.joining(","));
return result;
}
Java集合转换的例子也可以参考下面这篇文章
https://www.cnblogs.com/bobwuming/articles/8945965.html