Java 字母大小写比较
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in=new Scanner(System.in);
String x=in.next();
char n=x.charAt(0);**//字母比较**
if(n>='A'&&n<='Z') {
System.out.println("DA");
}else {
System.out.println("XIAO");
//如果是数字,还是输出"XIAO"
}
}