哪里不對(duì)哦
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);
?? ??? ?
?? ??? ?
?? ?}
}
舉報(bào)
2020-10-22
char = '男'
字符用單引號(hào) ' '
2020-10-08
char?是字符?