为什么这里的男或者女是用单引号围住?
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-03-07
举报