這個為什么是錯的呢
public class HelloWorld {
? ? public static void main(String[] args) {
int one = 20 ;
? ? if(one%2==0){
? ? ? ? ? ? System.out.println("one是偶數");
? ??
? ??
? ??
}
}
public class HelloWorld {
? ? public static void main(String[] args) {
int one = 20 ;
? ? if(one%2==0){
? ? ? ? ? ? System.out.println("one是偶數");
? ??
? ??
? ??
}
}
2019-05-29
舉報
2019-06-26
你的int one = 20 ;應該是用的中文的;符號,所以會出問題
2019-06-04
if 條件語那里少了一個 } 大括號來結束 你這個運行結果
2019-05-29
你用的是eclipse嘛?我用這個運行并沒有什么問題
2019-05-29