import java.util.Scanner;
class Test{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.println("请输入你的身高: (cm)");
int height = input.nextInt();
System.out.println("请输入你的财富: (千万)");
double wealth = input.nextDouble();
System.out.println("请输入你是否帅: (是/否)");
String isHandsome = input.next();
if(height > 180 && wealth >1 && isHandsome.equals("是")){
System.out.println("我一定嫁给他!!!");
}else if(height > 180 || wealth > 1 || isHandsome.equals("是")){
System.out.println("嫁吧,比上不足,比下有余");
}else{
System.out.println("不嫁!!!");
}
}
}
把"是"换成"yes"都可以,输入:是,结果还是:不嫁 请问如何解决 之前配置环境变量 Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 还改了 Active code page: 65001 别的都可以正常运行只是不能识别输入的中文