java中hasNextInt判断后无限循环输出else项的解决方法