private static <T> String parseListToStr(List<T> list){TRANSLATE with x English TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back 标签:Java,String,list,List,逗号,location,document From: https://www.cnblogs.com/jamstack/p/16971417.html
String result = list.stream().map(o-> (String)"'"+o+"'").collect(Collectors.joining(","));
return result;
}