怎么都不对啊
public class HelloWorld {
public static void main(String[] args) {
int score = 94;
String sex = "女";
if(score>80){
if(sex.equals("男")){
System.out.println("进入男子组");
}else{
System.out.println("进入女子组");
}else{
System.out.println("淘汰");
}
}
}
public class HelloWorld {
public static void main(String[] args) {
int score = 94;
String sex = "女";
if(score>80){
if(sex.equals("男")){
System.out.println("进入男子组");
}else{
System.out.println("进入女子组");
}else{
System.out.println("淘汰");
}
}
}
2015-02-27
举报