Scanner input = new Scanner(System.in);
System.out.println("You are in a small room.");
String op1 = input.nextLine();
if(op1 == ("look at surroundings" != null || "surroundings" != null || "look at surroundings" !=null || "what does the room look like" != null)) {
}
它返回此错误不兼容的操作数类型 String 和 boolean 我是一个非常缺乏经验的 Java 程序员。我到处寻找答案,但找不到答案。