請問我哪里錯了?運行了幾次都不行
public class HelloWorld{
? ? public static void main(String[] args) {
final char Man="男";
final char Woman="女";
System out println(Man);
System out println(Woman);
}
}
顯示的錯誤:
HelloWorld.java:5:?error:?';'?expected System?out?println(Man); ??????????^ HelloWorld.java:6:?error:?';'?expected System?out?println(Woman); ??????????^ 2?errors
什么意思?
2019-08-13
錯誤信心顯示弟5行 和第6行錯誤
正確格式應該是
System.out.println(Man);
?System.out.println(Woman);
你缺少了符號
2019-10-05
不是你的char要用? ''? ?一對單引號,String才是用? “” 。
2019-08-13
看提示信息,第五行和第六行的分號有問題,你看看是不是打成中文輸入法下的分號了
2019-08-13
分號有問題 要用英文輸入法的分號 而不是中文輸入法的分號