1、import java.io.*;public class Methodprivate int intinput() throws IOException,NumberFormatExceptionBufferedReader br=new BufferedReader(new InputStreamReader(System.in);String str=br.readLine();int i=Integer.parseInt(str);return i;private String stringinput() throws IOExceptionBufferedReader br=new
2、BufferedReader(new InputStreamReader(System.in);String str=br.readLine();return str;private boolean between(int n,int min,int max)for(int i=min;istop.size)System.out.println(“此车位尚无汽车!“ );continue;stop.pop(i2, passway, temp);continue;case 4:System.out.println(“请选择查询区域:“);System.out.println(“1:停车场“);S
3、ystem.out.println(“2:便道“);System.out.println(“3:打印全部“);int i4=method.iip(1,3);if(i4=1)System.out.println(“请输入待查询停车场车位编号:“);int i41=method.iip(1,5);if(stop.sizei41)System.out.println(“此车位尚无汽车!“ );elseSystem.out.println(stop.datai41-1.state.toString();elseif(i4=2)System.out.println(“请输入待查询便道车位编号:“);int i42=method.iip(1, 100);if(passway.sizei42)System.out.println(“此车位尚无汽车!“);elseint ii=(i42-1+passway.front)%passway.data.length;System.out.println(passway.dataii.state.toString();elsestop.print();passway.print();continue;case 5:System.out.println(“欢迎再次使用!“);break;