public Customer getMostItems() throws NotNegativeException { Customer temp = null; int max = Integer.MIN_VALUE; List<Customer> cs = custDAO.getAllCustomers(); for (Customer c : cs) { List<Item> items = c.getItems(); int num = 0; for (Item item : items) { num += item.getQuantity(); } if (num > max) { temp = c; } } return temp; }