public void cistring(){
String sx="wsdwsa";
char []az=sx.toCharArray();
Set<Character> ch=new HashSet<Character>();
for(char aa:az){
ch.add(aa);
}
System.out.println(ch.size());
Iterator<Character> it=ch.iterator();
while(it.hasNext()){
int k=0;
char bi=it.next();
for(char sh:az){
if(sh==bi){
k++;
}
}
if(k>=2){
System.out.println(bi+"重复了"+k+"次");
}
}
}
String sx="wsdwsa";
char []az=sx.toCharArray();
Set<Character> ch=new HashSet<Character>();
for(char aa:az){
ch.add(aa);
}
System.out.println(ch.size());
Iterator<Character> it=ch.iterator();
while(it.hasNext()){
int k=0;
char bi=it.next();
for(char sh:az){
if(sh==bi){
k++;
}
}
if(k>=2){
System.out.println(bi+"重复了"+k+"次");
}
}
}