菜鸟求问为什么错了
public class HelloWorld {
public static void main(String[] args) {
int age=25;
if(age>60)
System.out.print1n("老年");
}
else if(age>40&&age<=60){
System.out.print1n("中年");
}
else if(age>=18&&age<=40){
System.out.print1n("少年");
}
else{
System.out.print1n("童年");
}
}
}