帮忙找错。感激不尽。
package cn.com.didizuchexitong;import java.util.Scanner;public class Test { public static void main(String[] args) { System.out.println("欢迎使用答答租车系统:您是否要租车:1.是 0.否"); Scanner input = new Scanner(System.in); int choice = input.nextInt(); while(true){ if(choice!=0 && choice!=1){ System.out.println("您输入有误,请重新输入。"); }else{ break; } choice = input.nextInt(); } if(choice==1){ System.out.println("您可租车的类型及其价目表"); System.out.println("序号" + "\t" + "汽车名称" + "\t\t" + "租金" + "\t\t" + "容量"); Vehicle[] v = {new Car("奥迪A4",500,4),new Car("马自达6",400,4),new PickUp("皮卡雪6",450,4,2), new Car("金龙",800,20),new Truck("松花江",400,4),new Truck("依维柯",1000,20)}; for (int i = 0 ; i |