刚写的
public static void main(String[] args) throws Exception {
FileInputStream inputStream = new FileInputStream(new File("src/1.txt"));
int value=0;
int sz=0;//数字
int xx=0;//小写
int dx=0;//大写
while((value=inputStream.read())!=-1){
System.out.println(value);
if(value>=48 && value<=57){
sz++;
}else if(value>=65 &&value<=90){
dx++;
}else if(value>=97 &&value<=122){
xx++;
}
}
System.out.println("数字:"+sz+",小写:"+xx+",大写:"+dx);
}