请问我这样些是不是太冗余了一点啊?
public class HelloWorld{ public static void main(String[] args){ int num = 999; int count = 0; if(num%1000000000==num&&num!=0){ for(int i=1; i<1000000000; i=i*10){ if(num%i==num){ break; } count++; } System.out.println("它是个"+count+"位的数!"); }else if(num==0){ System.out.println("它是个1位数的数!"); }else{ System.out.println("数字超出判断范围"); } } }