求助,到底哪錯(cuò)了
public class HelloWorld{
? ? public static void main(String[] args) {
int score=68;
String mark=(score >= 60) ? "及格" :"不及格";
System.out.println("考試成績(jī)?nèi)绾危?+mark);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
int score=68;
String mark=(score >= 60) ? "及格" :"不及格";
System.out.println("考試成績(jī)?nèi)绾危?+mark);
}
}
2023-01-19
舉報(bào)
2023-01-25
第四行的冒號(hào),要用英文的冒號(hào) ,中文:? ?英文:? ?兩個(gè)冒號(hào)長(zhǎng)得不一樣