哪里错呢??一定要用equals???
public class HelloWorld {
public static void main(String[] args) {
int score = 94;
String sex = "女";
if(score >= 80){
if(sex = "女"){
System.out.println("达到并加入女子组决赛");
}else{
System.out.println("达到并加入男子组决赛");
}
}else{
System.out.println("未达到80分");
}
}
}