無(wú)法運(yùn)行,為何?
public class HelloWorld{
? ? public static void main(String[] args) {
?final String MAN="MALE";
? ? ? final String WOMAN="FEMALE"
? System.out.println(MAN);
? ? ? ?System.out.println(WOMAN);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
?final String MAN="MALE";
? ? ? final String WOMAN="FEMALE"
? System.out.println(MAN);
? ? ? ?System.out.println(WOMAN);
}
}
2016-01-19
舉報(bào)
2016-01-19
因?yàn)槟愕哪莻€(gè)final String WOMAN="FEMALE"后面差一個(gè)分號(hào) ,加上去就好了
2016-01-19
"FEMALE"后面沒(méi)有加;
2016-01-19
第四行沒(méi)打分號(hào)