999/10=99.9判断就有问题
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
count=num/10;
if(count<10){
System.out.println("这是个位数的数");
}else if(count>=10&&count<100){
System.out.println("这是十位数的数");
}else if(count>=100){
System.out.println("它是个3位的数!");
}
}
}