最赞回答 / 恩井
输出错了,输出的是变量名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
public class HelloWorld{
public static void main(String[] args) {
final char SEX='男';
final char SEX1='女';
System.out.println(SEX);
System.out.println(SEX1);
}
}
public static void main(String[] args) {
final char SEX='男';
final char SEX1='女';
System.out.println(SEX);
System.out.println(SEX1);
}
}
2020-02-04
boolean a = true; // a同意
boolean d = true; // d同意
System.out.println((a^d)+"通过");
应该是 false 通过
boolean d = true; // d同意
System.out.println((a^d)+"通过");
应该是 false 通过
2020-02-04