为什么不能用char
public class HelloWorld{
public static void main(String[] args) {
final char MALE="男";
final char FEMALE="女";
System.out.println(MALE;
System.out.println(FEMALE);
}
}
为答案要求用 Srting ,而不是char呢
public class HelloWorld{
public static void main(String[] args) {
final char MALE="男";
final char FEMALE="女";
System.out.println(MALE;
System.out.println(FEMALE);
}
}
为答案要求用 Srting ,而不是char呢
2018-01-27
举报