Issue adding elements to an ArrayList while looping through a HashMap

Printable View