public static void trans(int num,int base, int offset)
{
if(num==0);
{
System.out.println(0);
return ;
}
char[] chs={'0','1','2','3','4','5','6','7','8',
'9','A','B','C','D','E','F'};
编译的时候,会显示 错误:无法访问的语句,
char[] chs={'0','1','2','3','4','5','6','7','8',
'9','A','B','C','D','E','F'};
我觉得是return了,不再往下执行了,那怎么会编译报错?
|
|