请问大神们哪里错了???
public class texttwo {
public static void main(String[]args){
while (true) {
int age;
Scanner scanner=new Scanner(System.in);
System.out.println("请输入你的年龄,然后单机回车键");
age=scanner.nextInt();
System.out.println(age >= 60 ? "老年":age >40 ?
"中年":age > 18 ?"少年":"童年");
}
}
}