各種大佬 我這個(gè)哪里錯(cuò)了???
public class HelloWorld {
??? public static void main(String[] args) {
??int score = 94;
??String sex = "女";
??if(score>80){
????? if(sex.equals("男")){
????????? System.out.println("進(jìn)入男子組決賽");
????? }else{
????????? System.out.println("進(jìn)入女子組決賽");
????? }else{
????????? System.out.println("未進(jìn)入決賽");
????? }
??}
???????
???????
???????
???????
???????
???????
???????
???????
???????
???????
??
?}
}
2019-11-28
如果是連續(xù)的判斷用 if? else if 句式
2019-11-28
第二個(gè)else前面加多個(gè)?}
2019-11-28