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("进入男子组决赛");
}}}}
public static void main(String[] args) {
int score = 94;
String sex = "女";
if(score>80){if(sex.equals("女")){System.out.println("进入女子组决赛");
}else{System.out.println("进入男子组决赛");
}}}}
2015-08-03
提交以后,右面提示有错误!但是现实成功了,有点晕晕的!我这样写对不对:
for(int score:scores){
System.out.println(score);
}
for(int score:scores){
System.out.println(score);
}
2015-08-03