public static void unBook(int bookingId){ for(Customer c : customerArray){ for(Booking b : c.BookingArray){ for(Iterator it=c.BookingArray.iterator(); it.hasNext();)if(it.next().bookingID==bookingId)it.remove(); } } }