Using ArrayList<int>

i just realised why.

the if else thing is wrong