public class HelloWorld {
public static void main(String[] args) {
int score = 78;
String sex = "男";
String jg;
if (score>80)
if (sex == "女")
jg = "进入女子组决赛";
else jg ="进入男子组决赛";
else jg = "出局";
System.out.println(jg);
}
}
字符串不能用==来进行比较哦