public boolean editManufacturedProduct(String productName, String newProductName,
                               int newProductQuantity, long newSalePrice){
        
        for (int i = 0; i < manufacturedProductList.size(); i++) {
            int actualQuantity = 0;
            if (manufacturedProductList.get(i).getProductName().equals(productName)) {
                manufacturedProductList.get(i).setProductName(newProductName);
                manufacturedProductList.get(i).setSalePrice(newSalePrice);
                int oldProductQuantity = manufacturedProductList.get(i).getQuantity();
                if(oldProductQuantity < newProductQuantity){
                    int difference = newProductQuantity - oldProductQuantity;
                    for(int j=0; j<difference; j++){
                        boolean buildingSuccessful = this.buildProduct(productName);
                        if(buildingSuccessful == false){
                            actualQuantity = oldProductQuantity + j;
                            System.out.println("There is not enough RawMaterial to build "
                                    +"\n"
                                    + "the amount of this Manufatured Product you want to "
                                    +"\n"
                                    + "build.");
                            
                            System.out.println("");
                            System.out.println("" + j + " of these products were built");
                            System.out.println("");
                            System.out.println("The new quantity of these product is " + 
                                    actualQuantity + ".");
                            break;
                        }
                        actualQuantity = newProductQuantity;
                    }
                }
                manufacturedProductList.get(i).setQuantity(actualQuantity);
                return true;
            }
        }
        return false;
    }