符号问题,换成单下引号就对了,双引号为什么不可以
public class HelloWorld{
public static void main(String[] args) {
final char SEX1="男";
final char SEX2="女";
System.out.println(SEX1);
System.out.println(SEX2);
}
}
public class HelloWorld{
public static void main(String[] args) {
final char SEX1="男";
final char SEX2="女";
System.out.println(SEX1);
System.out.println(SEX2);
}
}
2017-09-05
举报