找不到哪里錯了
public class HelloWorld{
??? public static void main(String[] args) {
??int score=68;
??String mark =(score >= 60)? "及格" :"不及格";
??System.out.println("考試成績?nèi)绾危?+mark);
?}
}
public class HelloWorld{
??? public static void main(String[] args) {
??int score=68;
??String mark =(score >= 60)? "及格" :"不及格";
??System.out.println("考試成績?nèi)绾危?+mark);
?}
}
2018-09-13
舉報
2018-09-13
看下第四行的符號是不是英文符號,不能使用中文符號哦
2018-09-13
及格后的冒號和不及格后的分號是中文符號