Hi there, First, is the logic of this solution right? Second, what is not working in this piece of code:
int index = 0;

                while(index < products.size()){
                    Product product = new Product(products.get(index).id, products.get(index).productName, products.get(index).price
                    , products.get(index).quantity);
                    if(product.id==Integer.parseInt(args[1])){
                        products.remove(product);
                        break;
                    }
                    index++;
                }
I tought this will remove the product from the list products but is not the case. Thanks