package cn.bdqn.demo02;
public class Zuoye19 {
public static void main(String[] args) {
char ch = (char)(int)(Math.random()*59+65);
System.out.println(ch);
if(ch>='A'&&ch<='Z'){
System.out.println("大写字母");
}
else if(ch>='a'&&ch<='z')
{
System.out.println("小写字母");
}else{
System.out.println("其他字符");
}
}
}
雙擊加關注!!!!!!!