为什么说我的last没有初始化
public class HelloWorld { public static void main(String[] args) { int score = 94; String sex = "女"; String last; if (score>80){ if (sex.equals("女")){ last="进入女子组决赛"; }else{ last="进入男子组决赛"; } } System.out.println(last);
运行失败
HelloWorld.java:13: error: variable last might not have been initialized
System.out.println(last);
^
1 error