TreeSet:不包含重复值,区分大小写
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String str=sc.next();
char[] charArray=str.toCharArray();
Set set=new TreeSet();
for(char c:charArray){
set.add(c);
}
System.out.println(set.size());
}
}
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String str=sc.next();
char[] charArray=str.toCharArray();
Set set=new TreeSet();
for(char c:charArray){
set.add(c);
}
System.out.println(set.size());
}
}