public class HelloWorld { public static void main(String[] args) { int score = 94; String sex = "女"; if (score > 80){ System.out.println("分数已达标,开始性别检测......"); if (sex == "女"){ System.out.println("恭喜你进入女子组决赛!"); }else{if(sex == "男"){ System.out.println("恭喜你进入男子组决赛!"); }else{ System.out.println("外星人和人妖或妖人给我滚出去!"); }} }else{ System.out.println("对不起,你没有进入决赛......"); } } }
牛掰不