public class HelloWorld{
public static void main(String[] args) {
final char SEX1='男';
final char SEX2='男';
syetem.out.println(SEX1);
syetem.out.println(SEX2);
}
}
SEX1后的分号不能是中文的
system应改为System
public class HelloWorld{ public static void main(String[] args) { final String MALE = "男"; final String FEMALE = "女"; System.out.println(MALE); System.out.println(FEMALE); } }
分号用英文输入法
system改为System
1,。你第四行的分号错了,应该是英文分号。
2.System你拼错了..
下面是修改后的代码
public class HelloWorld{
public static void main(String[] args) {
final char SEX1='男';
final char SEX2='男';
System.out.println(SEX1);
System.out.println(SEX2);
}
}
syetem拼错
system.out.println(SEX1);
system.out.println(SEX2);
分号似乎也不统一?