set where I should create a java code to store product list to respective store.
for Example:
I have an array list of Store named storeList. It have 3 values ("StoreA", "StoreB","StoreC").
I was asked to add product to one of the store with certain command like:
ADD PRODUCT StoreA
and it will prompt the user to fill these:
Product Name : <user input>
Product Price: <user input>
Product Qty : <user input>
after that, storeA will have new product named, price, and quantified according to user inputs.
I'm thinking to create an ArrayList to store the store name, but what is the best approach to add the product from one of the stores?