java List转数组,转逗号间隔的字符串


List转数组,转逗号间隔的字符串

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



数组转list

String customerLabel = "xxx,xxx";

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

你可能感兴趣的:(java)