标签:next contain span contains bsp iter lis turn array
public ArrayList getSingleList(ArrayList list){
ArrayList newList = new ArrayList();
Iterator iterator = list.iterator();
while (iterator.hasNext()){
Object obj = iterator.next();
if (!newList.contains(obj)){
newList.add(obj);
}
}
return newList;
标签:next contain span contains bsp iter lis turn array
原文地址:http://www.cnblogs.com/mojiayi/p/6737112.html