Problem with keeping values into an arrayList

Printable View