為什么要打空格
public class HelloWorld{
??? public static void main(String[] args) {
??int score=68;
??String mark =(score >= 60)?"及格":"不及格";
??System.out.println("考試成績如何:"+mark);
?}
}
>=左右都加了個空格才運行成功,去了空格就出錯是為什么啊
public class HelloWorld{
??? public static void main(String[] args) {
??int score=68;
??String mark =(score >= 60)?"及格":"不及格";
??System.out.println("考試成績如何:"+mark);
?}
}
>=左右都加了個空格才運行成功,去了空格就出錯是為什么啊
2017-10-25
舉報
2017-10-25
空格是沒有影響的,請確定英文狀態下輸入再試一次
2017-10-25
空格是沒有影響的,主要是看起來舒服點,不能運行是可能你中英文弄錯了