首页 新闻 会员 周边 捐助

数字格式调试异常,求教

0
悬赏园豆:30 [已关闭问题] 关闭于 2015-10-23 11:06

class ConverTo
{ public static void main(String [] args)
    { String numberIn = args[0];
     convertNum(numberIn);
    }
static void convertNum(String num)
    {
long showNumber;
out:
switch(num)
      { case "one":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "two":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "three":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "four":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "five":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "six":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "seven":
showNumber =Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "eight":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "nine":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;
case "ten":
showNumber = Long.parseLong(num);
System.out.println(num+"convert to"+showNumber);
break;


        }


     }

 

}

lubocsu的主页 lubocsu | 初学一级 | 园豆:46
提问于:2015-10-23 11:05
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册