public class HelloWorld{
public static void main(String[] args) {
final String MALE="男";
final String FEMALE="女";
System.out.printIn(MALE);
System.out.printIn(FEMALE);
}
}
问题在System.out.printIn.out(),字母拼写错误,正常是System.out.println().
public class HelloWorld{
public static void main(String[] args) {
final String MALE="男";
final String FEMALE="女";
System.out.println(MALE);
System.out.println(FEMALE);
}
}