list集合转String 字符串

版权声明:Boomlee https://blog.csdn.net/BoomLee/article/details/82684818

  将集合list2 转换为 String2字符串,以逗号分隔

 String string2 = StringUtils.join(list2.toArray(), ",");

猜你喜欢

转载自blog.csdn.net/BoomLee/article/details/82684818