為什么每次都會(huì)提示說(shuō)中文輸入有問(wèn)題呢
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
if(num>0&&num<=999999999)
{
? ? while(num!=0){
? ? ? ? count++;
? ? ? ? num=num/10;
? ? }
? ? System.out.println("他是個(gè)"+count+"數(shù)");
}
else{
System.out.println("輸入有誤");
}
2016-04-25
2016-04-24
少兩個(gè)括號(hào)?你復(fù)制完全了么?