請(qǐng)問(wèn)這是哪里錯(cuò)誤了?
public class HelloWorld{
? ? public static void main(String[] args) {
final Char a='男';
final Char b='女';
System.out.println(a+"\n"+b);
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
final Char a='男';
final Char b='女';
System.out.println(a+"\n"+b);
}
}
舉報(bào)
2018-10-26
char 要換成String 還有程序中就算你要用char也是小寫(xiě)的c沒(méi)有大寫(xiě)的C,這里不能有char,需要用String
2018-11-04
問(wèn)什么這里用String不用char
2018-10-27
public class TestCase {
public static void main(String[] args) {
final char a='男';
final char b='女';
System.out.println(a+"\n"+b);
}
}
char不需要大寫(xiě)