请问一下这个哪里错了
public class HelloWorld {
public static void main(String[] args) {
int age=25;
String res;
if(age>18);
res = "成年";
else
res = "未成年";
System.out.println("age"+res);
}
}
public class HelloWorld {
public static void main(String[] args) {
int age=25;
String res;
if(age>18);
res = "成年";
else
res = "未成年";
System.out.println("age"+res);
}
}
2021-03-22
举报