import java.io.*; public class Method { private int intinput() throws IOException,NumberFormatException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String str=br.readLine(); int i=Integer.parseInt(str); return i; } private String stringinput() throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String str=br.readLine(); return str; } private boolean between(int n,int min,int max) { for(int i=min;i<=max;i++) if(n==i) return true; return false; } private void printerror() { System.out.println("输 入错误!请重新输 入!"); } String sip() { String str; while(true) { try { str=this.stringinput(); } catch(IOException e) { this.printerror(); continue; } break; } return str; } int iip(int min,int max) { int n=0; while(true) { try { n=this.intinput(); } catch(IOException e) { this.printerror(); continue; } catch(NumberFormatException e) { this.printerror(); continue; } if(!this.between(n,min,max)) { this.printerror(); continue; } break; } return n; } } public class Car { String car_no; String state; Car() { car_no=null; state=null; } } public class Stop { Car data[]; int size; Stop() { data=new Car[1]; size=0; } private Car peek() { return data[size-1]; } private boolean isFull() { return size==data.length; } private Car pop() { size--; return data[size]; } void pop(int location,Passway p,Temp t) { if(location==this.size) { System.out.println(this.peek().car_no+"号 车 离 开 停车 场"); this.pop(); } else { int f=this.size; for(int i=1;i<=f-location;i++) { t.push(this.peek()); this.pop(); } System.out.println(this.peek().car_no+"号 车 离 开 停 车 场"); this.pop(); for(int i=0;!t.isEmpty();i++) { this.push(t.peek()); t.pop(); } } if(!p.isEmpty()) { this.push(p.data[p.front]); p.remove(); } } vo...