求大神解答这段代码哪出问题了
java吧
全部回复
仅看楼主
level 1
夺命排骨 楼主
2015年12月19日 07点12分 1
level 1
夺命排骨 楼主
贴吧大神呢?
2015年12月19日 07点12分 2
level 10
num是int类型的吧,怎么用equals方法呢?
2015年12月19日 07点12分 3
level 12
多了个break
2015年12月19日 07点12分 4
level 14
毛线啊……看不懂
2015年12月19日 08点12分 5
level 11
break跳出for循环了吧
2015年12月19日 08点12分 6
level 8
……神代码,各种不符合逻辑……新手也要有一个度好嘛
2015年12月19日 08点12分 7
level 4
do里面嵌套for ,定义一个布尔变量 if判断是否匹配,不匹配在else里面布尔变量为假 while判断布尔变量为假继续循环
2015年12月19日 09点12分 8
level 10
牛逼人物,你是想写出递归效果吧,你这个没递归效果
2015年12月19日 09点12分 9
level 5
你这个是不是想输入一个数。确定这个是不是指定的数字。。这样do...while()就满足了。你还需要这个for
伪代码
int inNum = 0;
boolean isWhile = true;
do{
if(输入字符是否等到指定字符表达式){
//成立就把 isWhile = false
}else{
//不可能则继续输入
}
}while(isWhile)
2015年12月19日 09点12分 10
1