public class HelloWorld{
public static void main(String[] args) {
final char M="男";
System.out.println(M);
}
"String"
'char'
双引号改为单引号即可