這樣也行嗎
也行? public class HelloWorld{ ? ?public static void main(String[] args) { int score=68; String mark = score>=60?"及格" ? ? ? ?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?"及格" ? ? ? ?String mark = score<=60?"不及格" System.out.println("考試成績(jī)?nèi)绾危?+mark); } }
2016-11-22
舉報(bào)
2016-11-23
不行的,必須用固定的表達(dá)式。
2016-11-22
- -你能運(yùn)行?