public class HelloWorld
public static void main(String[] args) {
final char SEX1 = ‘男’;
final char SEX2 =‘女’;
System.out.println(SEX1);
System.out,println(SEX2);
}
}
1、public class HelloWorld后少一个{;
2、'男';,用的中文格式
3、System.out.println(SEX2); out后面打成逗号了
public class HelloWorld{
public static void main(String[] args) {
final char SEX1 ='男';
final char SEX2 ='女';
System.out.println(SEX1);
System.out.println(SEX2);
}
}