public class HelloWorld{ public static void main(String[] args) { final char SEX="男"; final char SEX2="女"; System.out.println(SEX); System.out.println(SEX2); }}
char用的是单引号‘’
字符型要用单引号''
final char SEX1='男';
final char SEX2='女';