使用hashmap吧HashMap hs = new HashMap();String strs = "";for (String string : repList) {if(hs.get(string) == null) {strs += ","+string;}}System.out.println(strs); 如果要取一个一个值的话就split(",")获得数组就行了