請問這個哪里有問題???
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("未進入決賽組");
? ? }
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
}
}
2020-02-29
去掉第六行的=