I have an arraylist of customer objects. The customer objects contains name, street, city, zip, phone number, id, state.
Here is the code to create the ArrayList and customer object. It also has the code to add the object to the ArrayList.
ArrayList<Customer> customerList = new Customer();
Customer newCustomer = new Customer(bob, Pair, newYork, 12345, 1231231234, 3, newYork)
Customer newCustomer2 = new Customer(bob, Pair, greenville, 54321, 4564564567, 8, newYork)
customerList.add(newCustomer)
customerList.add(newCustomer2)
How would i remove the object that has the id of 8 from the arraylist?