1. 程式人生 > >List 轉 符號分隔的字串 / 符號分隔的字串轉 List

List 轉 符號分隔的字串 / 符號分隔的字串轉 List

List轉陣列,轉逗號間隔的字串

List<String> topicList = XXX;

String labelStr = StringUtils.join(topicList.toArray(),","));

陣列轉list

String customerLabel = "xxx,xxx";

CollectionUtils.arrayToList(customerLabel.split(","))

--------------------- 本文來自 多來哈米 的CSDN 部落格 ,原文地址請點選:https://blog.csdn.net/hgg923/article/details/59111080?utm_source=copy