I have a list of stock as a class and then a class of stores with the constructor shown below. The stores has an array list which links to the stock class.
How would I access the array list for a certain store?
E.G. If I pick the store argos I want all the stock that it has in it. Each store has its own stock
public Store(int storeId, String name, String location){
this.storeId = storeId;
this.name = name;
this.location = location;
items = new ArrayList<Stock>();
}