最新回答 / 慕九州9121542
public class HelloWorld{ public static void main(String[] args) { int one = 10 ; int two = 20 ; int three = 0 ; System.out.println("three = one + two ==>"+ (three=one+two)); System.out.println("three += one ==>"+ (...
2020-02-06
已采纳回答 / keith_洛洛
if 后面没有 括号,则if 只包含下一行。 那这样这个 compare 函数,就有可能没有返回值。 在 11 行下面,再加一行 return true ; 即可。
2020-02-06
最赞回答 / 流风之回雪
如果是<60,则当score加到score=60时就停止继续加,如果是<=60,则当score=60时,count+=1和score++还会再执行一次,变成score=61,count=8才停止。
2020-02-06
最赞回答 / 恩井
输出错了,输出的是变量名System.out.println (LI);这样然后这题很奇怪他一定要求要输出汉字的男女所以应该这样敲 final char LI='男';System.out.println (LI);
2020-02-05
最新回答 / 慕后端6118198
public class HelloWorld { public static void main(String[] args) { int score =84; String sex = "女"; if(score>80){ if(sex.equals("女")){ System.out.println("进入女子组决赛"); }else{ System.out.println("进...
2020-02-05
最新回答 / 慕九州9121542
public class HelloWorld{ public static void main(String[] args) { int one = 10 ; int two = 20 ; int three = 0 ; System.out.println("three = one + two ==>"+ (three=one+two)); System.out.println("three += one ==>"+ (...
2020-02-05