字符串去重复

来源:互联网 发布:mac导入后删除项目 编辑:程序博客网 时间:2024/06/08 19:42

public List<String> strRepeat(String str){

List<String>result =new ArrayList<String>(Arrays.asList(str.split(",")));

HashSeth = new HashSet(result); 

result.clear();

result.addAll(h);

System.err.println("内容:"+result);

return result;

}  

原创粉丝点击