求大神指点,在eclipse中输入数字后没有反应
System.out.println("欢迎来到答答租车!\n您是否要租车? 1 是 0 否");
Scanner input = new Scanner (System.in);
if (input.nextInt() != 1 && input.nextInt() != 0 ){
System.out.println("您的输入有误,请重新输入");
}else if (input.nextInt() == 0){
System.out.println("欢迎下次光临!");
}else if (input.nextInt() == 1){
System.out.println("您所能租车列表");
System.out.println ("序号" + "\t" + "车名" + "\t" + "载客量" + "\t" + "载货量" + "\t" + "价格");
for (int i=0; i<cars.length; i++){
cars[i].list();
}
}