@@ -0,0 +1,845 @@
+/* This class describes a registry able to contain orders within an array list! */ %0A%0Aimport java.util.ArrayList;%0A%0Apublic class OrderRegistry %7B%0A%0A%09private ArrayList%3COrder%3E orders;%0A%09%0A%09public OrderRegistry() %7B%0A%09%09this.orders = new ArrayList%3COrder%3E(); // Creates an empty array list...%0A%09%7D%0A%09%0A%09public ArrayList%3COrder%3E getOrders() %7B // Returns the list containing ALL orders!%0A%09%09return orders;%0A%09%7D%0A%0A%09public void setOrders(ArrayList%3COrder%3E orders) %7B // Sets a list containing orders!%0A%09%09this.orders = orders;%0A%09%7D%0A%0A%09public void addOrder(Order order) %7B // Adds a single order to the registry!%0A%09%09orders.add(order);%0A%09%7D%0A%0A%09public Order getOrder(int pos) %7B // Returns a single order from the position %22pos%22 within the registry!%0A%09%09return orders.get(pos);%0A%09%7D%0A%09%0A%09public void removeOrder(Order order) %7B // Removes the order from the list!%0A%09%09orders.remove(order);%0A%09%7D%0A%09%0A%7D%0A

Create OrderRegistry.java