1. 程式人生 > >//去除list中的重復元素放入到 hashset中,l是 arrayList

//去除list中的重復元素放入到 hashset中,l是 arrayList

array hset 重復元素 str 拼接 ash nbsp arraylist new

//去除list中的重復元素放入到 hashset中,l是 arrayListHashSet<String> hs = new HashSet<String>(l);//給arrayList 或 數組 或 hashSet 拼接成字符串String str= StringUtils.join(hs, "+");

//去除list中的重復元素放入到 hashset中,l是 arrayList