為何運行不出來呢???
public class HelloWorld {
??? public static void main(String[] args) {
??int one = 20 ;
?if (one%2==0){
??? System.out.println("one是偶數(shù)");
???
???
???
?}
}
public class HelloWorld {
??? public static void main(String[] args) {
??int one = 20 ;
?if (one%2==0){
??? System.out.println("one是偶數(shù)");
???
???
???
?}
}
2018-05-21
舉報
2018-08-09
最后差一個右大括號,還有三個小括號是全角,應該改成半角,半角占的地方比全角少。
2018-05-21
下面差個大括號
你的幾個小括號都是中文狀態(tài)下的
2018-05-21
public class HelloWorld {
????public static void main(String[] args) {
? ????? int one = 20 ;
? ????? if (one%2==0){
? ? ????????System.out.println("one是偶數(shù)");
?}?
?}
}
2018-05-21
是不是分號是中文的
2018-05-21
if(one%2==10)