求助,到底哪錯了
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);
}
}
2023-01-19
舉報
2023-01-25
第四行的冒號,要用英文的冒號 ,中文:? ?英文:? ?兩個冒號長得不一樣