为什么变量类型是String而不是char?为什么”男“是双引号不是单引号?
public class HelloWorld{
public static void main(String[] args) {
final String MALE="男";
final String FEMALE="女";
System.out.println(MALE);
System.out.println(FEMALE);
public class HelloWorld{
public static void main(String[] args) {
final String MALE="男";
final String FEMALE="女";
System.out.println(MALE);
System.out.println(FEMALE);
2019-04-16
举报