类型用char就不行吗
public class HelloWorld{
public static void main(String[] args) {
final char SEX="男";
final char SEXS="女";
System.out.println(SEX);
System.out.println(SEXS);
}
}
public class HelloWorld{
public static void main(String[] args) {
final char SEX="男";
final char SEXS="女";
System.out.println(SEX);
System.out.println(SEXS);
}
}
2018-12-17
举报