慕瓜0275119
2016-05-31 19:34
public class HelloWorld{
public static void main(String[] args) {
final String MALE="男";
final String FEMALE="女";
System.out.pintln("MALE"+SEX);
System.out.println("FEMALE"+SEX)
}
}
System.out.println("sex"+MALE);System.out.println("sex"+FEMALE);
public class HelloWorld{
public static void main(String[] args) {
final String MALE="男";
final String FEMALE="女";
System.out.println("MALE:"+MALE);
System.out.println("FEMALE:"+FEMALE);
}
}
逗比。sex没定义,;没加
package ex1;
public class Helloword {
public static void main(String[] args){
final String MALE="男";
final String FEMALE="女";
System.out.println(MALE);
System.out.println(FEMALE);}
}
你SEX没定义
System.out.pintln("MALE"+SEX); 应为println
System.out.println("FEMALE"+SEX) 句尾要分号
}
.pintln 你这里单词拼错了
System.out.println("MALE"+SEX);
Java入门第一季(IDEA工具)升级版
1165172 学习 · 17581 问题
相似问题