为什么不能使用char而只能使用Srting?
public class HelloWorld{
public static void main(String[] args) {
final char MALE='男';
final char FEMALE='女';
System.out.println(MALE);
System.out.println(FEMALE);
}
}
public class HelloWorld{
public static void main(String[] args) {
final char MALE='男';
final char FEMALE='女';
System.out.println(MALE);
System.out.println(FEMALE);
}
}
2016-11-19
举报