1,排序:
Arrays.sort(str)
2,去重:
HashSet hs=new HashSet();
hs.add(str);
3,排序+去重:
TreeSet ts=new TreeSet();
ts.add(str);
1,排序:
Arrays.sort(str)
2,去重:
HashSet hs=new HashSet();
hs.add(str);
3,排序+去重:
TreeSet ts=new TreeSet();
ts.add(str);