public class test4 {
//统计中英文字符、数字的个数
public static void main(String[] args) {
String sbc=”我爱你lidpfnmke我呵呵呵都很不1123儿女bfi”;
int numcount=0;
int zimucount=0;
int unicount=0;
for(int i=0;i<sbc.length();i++){
char ss=sbc.charAt(i);
if(ss>='0'&&ss<='9'){
numcount++;
}else if(ss>='a'&&ss<='z'||ss>='A'&&ss<='Z'){
zimucount++;
}else{
unicount++;
}
}
System.out.println(numcount);
System.out.println(zimucount);
System.out.println(unicount);
}
}