@@ -0,0 +1,902 @@
+package Iterator;%0A%0Aimport BuilderPattern.*;%0Aimport FactoryMethod.*;%0Aimport java.util.HashMap;%0Aimport java.util.Iterator;%0A%0A%0Apublic class CollectionImpl implements Collection%7B%0A    %0A     HashMap%3CInteger,Customer%3E customers;%0A     HashMap%3CInteger,Reservation%3E reservations;       %0A     %0A     public CollectionImpl()%0A     %7B%0A         customers= new HashMap();%0A         reservations= new HashMap();%0A         %0A     %7D%0A     %0A     @Override%0A     public void addCustomer(Customer customer)%0A     %7B%0A         customers.put(customer.getCustomerId(),customer);%0A         %0A     %7D%0A     %0A     public void addReservation(Reservation reservation)%0A     %7B%0A         reservations.put(reservation.getReservationId(), reservation);%0A     %7D%0A%0A    public HashMap%3CInteger, Customer%3E getCustomers() %7B%0A        return customers;%0A    %7D%0A%0A    public HashMap%3CInteger, Reservation%3E getReservations() %7B%0A        return reservations;%0A    %7D%0A    %0A%0A%7D%0A

Create CollectionImpl.java