package Base; import java.util.HashSet; import java.util.Set; import java.util.SortedMap; import java.util.SortedSet; import java.util.TreeSet; public class HashSetTest { public static void main(String[] args) { String str="gghgaifuerbbaaccddffee"; char[] in = str.toCharArray(); Set set=new HashSet(); HashSet hashSet=new HashSet(); SortedSet sortedSet=new TreeSet(); //SortedMap<, > for(int i=0;i