一個錯誤 , 求解。
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.prinltln("成績不合格");
? ? ? ? }
? ? ? ??
}
}
2018-07-31
第三個println多了一個l
2018-07-23
好吧 找到了 是多了個 l