import java.util.*;
public class boyFriend
{
public static void main(String[] args)
{
Scanner in=new Scanner(System.in);
System.out.println(“请写出你目前的感情状况:danshengou或者tuodan”);
String youfo=in.next();
System.out.println(“请输入你的年龄:”);
int age=in.nextInt();
if(age>=24 && age<=30)
{
if(youfo ==danshengou)
{
System.out.println("我宠你啊!”);
}
else if(youto == tuodan)
{
System.out.println("我来了,你走了!我走了,你来了无缘呐!");
}
else
{
System.out.println("好走,不送!”);
}
}
else
{
System.out.println("好走,不送!”);
}
}
}
|