這是哪里有問題?
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("淘汰");
}
}
}
2021-07-23
“進入女子決賽”后多了一個{