Java中Set巧用,去掉重複數據

Java中Set有這樣一個方法,.addAll( Collection c),直接加入List集合,去掉重複的數據。java   Java代碼   public static void main(String[] args) {   Set  set=new HashSet();   set.add("abc");   set.add("cde");   set.add("efg");   set
相關文章
相關標籤/搜索