Finding this one tough, basically I have three classes: Store class, Stock class and then the class for the GUI. When a store is created, I want it to have it\'s very own arrary
In the constructor of Store, you have
Store
ArrayList stockItems = ...
That is actually creating a local variable stockItems, instead of changing the field. To make it work use just
stockItems
stockItems = ...