将数组转换为List:
String[] ids = proHist.split("#");
//将ids转化为list集合
Collection<String> collection = Arrays.asList(ids);
将List转换为LinkedList:
LinkedList<String> list = new LinkedList<>(collection);
将LinkedList转换为String
//将linkedlist转换为string
StringBuffer sBuffer=new StringBuffer();
for (String string : list) {
sBuffer.append(string);
}
String result = sBuffer.toString();
result=result.substring(0, result.length());