public class HelloWorld{
public static void main(String[] args) {
final char SEX_1=‘男’;
final char SEX_2=‘女’;
System.out.println(SEX_1);
System.out.println(SEX_2);
}
}
final char SEX_1=‘男’; final char SEX_2=‘女’;
引号错了,被敲成中文的。改成英文即可
final char SEX_1='男'; final char SEX_2='女';