为啥 final char以后 不能用+
public class HelloWorld{
public static void main(String[] args) {
final char SEX1 = "男";
final char SEX2 = "女";
System.out.println(SEX1+SEX2);
}
}
public class HelloWorld{
public static void main(String[] args) {
final char SEX1 = "男";
final char SEX2 = "女";
System.out.println(SEX1+SEX2);
}
}
2018-01-08
举报