代碼編寫有問題的看看我的
public class HelloWorld {
? ? public static void main(String[] args) {
int age=25;
if(age>18)
? ? ? ? ? ?System.out.println("成年");
? ? ? ? else
? ? ? ? ? ?System.out.println("不是成年"); ? ??
}
}
public class HelloWorld {
? ? public static void main(String[] args) {
int age=25;
if(age>18)
? ? ? ? ? ?System.out.println("成年");
? ? ? ? else
? ? ? ? ? ?System.out.println("不是成年"); ? ??
}
}
2015-05-24
舉報(bào)
2015-12-02
代碼沒有問題啊
2015-06-05
沒有大括號(hào){}
2015-05-27
對(duì)的啊