System.out.println("请问你的性别?(男/女)");
String sex=in.next();
if(sex.equals("男")){
System.out.println("你的年龄多少?");
int age=in.nextInt();
if(age>=18){
System.out.println("成年了啊");
}else{
为什么我输入男不运行输入年龄的问题
String sex=in.next();
if(sex.equals("男")){
System.out.println("你的年龄多少?");
int age=in.nextInt();
if(age>=18){
System.out.println("成年了啊");
}else{
为什么我输入男不运行输入年龄的问题














本站有权保留或删除有争议评论。 参与本评论即表明您已经阅读并接受上述条款。