代碼哪里錯了?
public class HelloWorld{
? ? public static void main(String[] args) {
int score=68;
String mark = (score >= 60 ) ? " 及格 " : " 不及格 ";
System.out.println("考試成績如何:"+mark);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
int score=68;
String mark = (score >= 60 ) ? " 及格 " : " 不及格 ";
System.out.println("考試成績如何:"+mark);
}
}
2016-07-23
舉報
2016-07-23
你分號是中文輸入法。。。。
2016-08-19
冒號和問好我用英文的不對,換了中文的就對了,用esclips測試的
2016-07-23
看著沒問題啊,是不是用中文輸入法打的冒號