为什么是错误的
public class HelloWorld {
public static void main (String[] args){
int age=25;
String xx;
if(age>=18);{
xx="成年";
}
else {
xx="未成年";
}
System.out.println("null"+xx);
}
}
public class HelloWorld {
public static void main (String[] args){
int age=25;
String xx;
if(age>=18);{
xx="成年";
}
else {
xx="未成年";
}
System.out.println("null"+xx);
}
}
2016-01-17
举报