// list转数组
Long[] ids = updateIds.toArray(new Long[updateIds.size()])
// 数组转list
List<String> reasonList = Arrays.asList(perm.trim().split(","))
// String转数组
String[] reasons = business.getReason().split(",")
// 数组转字符串 需要引⼊Apache Commons组件中的个commons-lang.jar包:
String str1=StringUtils.join(array , ",");
标签:String,list,Long,split,数组,字符串 From: https://www.cnblogs.com/ygc001/p/17797783.html