这是我的代码:
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String question;
question = in.next();
if (question.equalsIgnoreCase("howdoyoulikeschool?") )
/* it seems strings do not allow for spaces */
System.out.println("CLOSED!!");
else
System.out.println("Que?");
当我试着写“你喜欢学校吗?” 答案总是“阙?” 但它可以很好地作为“你喜欢学校吗?”
我应该将输入定义为字符串以外的内容吗?