請(qǐng)教各位大神,不知哪里出了問(wèn)題,幫忙看看
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);
}
}
2018-12-03
舉報(bào)
2019-01-31
一個(gè)方法內(nèi)score不能同時(shí)為int和String
2019-01-16
2018-12-03
第四行最后一個(gè)分號(hào)格式錯(cuò)誤
2018-12-03
不及格后面的封號(hào)用英文輸入法重新輸入一次吧