:idea:[code="java"]publicstaticvoidmain(String[]args){String[]ar={"dd","c","dd","ff","b","e","e"};ArrayListlist=newArrayList();for(inti=0;ih=newHashSet(list);list.clear();list.addAll(h);/*第一种方法*//*第二种方法*//***第二中方法去除list中重复的数据*/Setset=newHashSet()...
查看全文