這串代碼哪里錯(cuò)了啊
public class HelloWorld{ ? ?public static void main(String[] args) { int score=68; String mark = (score >= 60) ? "及格" : "不及格"; System.out.println("考試成績(jī)?nèi)绾危?+mark); } }這個(gè)代碼哪里錯(cuò)了呢
public class HelloWorld{ ? ?public static void main(String[] args) { int score=68; String mark = (score >= 60) ? "及格" : "不及格"; System.out.println("考試成績(jī)?nèi)绾危?+mark); } }這個(gè)代碼哪里錯(cuò)了呢
2017-09-16
舉報(bào)
2017-09-16
你的分號(hào) 是中文輸出法的分號(hào)
2017-09-17
問題已解決,謝謝