为什么总是报错呀
public class HelloWorld {
public static void main(String[] args) {
int age=25;
Syring xx;
if (age>60)
xx="老年";
else if (age>40)
xx="中年";
else if (age>18)
xx="少年";
else
xx="童年";
System.out.println(xx);
}
}
public class HelloWorld {
public static void main(String[] args) {
int age=25;
Syring xx;
if (age>60)
xx="老年";
else if (age>40)
xx="中年";
else if (age>18)
xx="少年";
else
xx="童年";
System.out.println(xx);
}
}
2019-06-17
举报