So I found solution of it in two ways -. 1) Using a static ArrayList to store all products. 2) Creating a new Cart table in Database where we can store products. I would prefer using second one as it will be more dynamic solution and using static ArrayList can still give some issues. answered Sep 7, 2018 at 6:41. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.