list去从复

for(int i=0;i<queryList.size();i++){//去重
             String time =queryList.get(i);
             if(!tempList.contains(time)){
                tempList.add(time);
             }
         }

原文地址:https://www.cnblogs.com/kongxc/p/6255697.html