import java.util.Scanner;
public class Demo {
public static void main(String[] args) {
System.out.println("输入:");
Scanner scan=new Scanner(System.in);
String str = scan.nextLine();
if(str.length() > 1){
System.out.println("输入的是字符串");
}else if(str.matches("[a-z]")){
System.out.println("输入的是小写字母");
}else if(str.matches("[A-Z]")){
System.out.println("输入的是大写字母");
}else if(str.matches("[0-9]")){
System.out.println("输入的是数字");
}else{
System.out.println("输入的既不是字符串,也不是大小写字母,也不是数字!");
}
}
}