If I have a list of Products(an inventory):
public List<Product> productList = new ArrayList<>();
After a customer selects a given product for purchase, can I/how do I remove the product from productList(my inventory) and place it in another list (the customer's shoppingCart)? From here, if the customer decides he/she would not like to purchase the product (proceed to checkout) can I/how do I remove this product from shoppingCart & return it to productList?