I am using WebSockets to continuously pass data to my front-end view and I need to loop through an arraylist of stocks with prices. I tried to use stockList.get(i).price which i