请大神帮忙看一下为啥if (sex="女") 报错
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("淘汰");}
}
}