int num = 999; System.out.print("它是个"+(String.valueOf(num)).length()+"位的数!");
int i=1;
while(num/i!=0){
i=i*10;
count++;}
System.out.println("它是个"+(count-1)+"位的数!")
System.out.println(
"它是个"
+(count-1)+
"位的数!"
}