Using ArrayList<int>

Use
ArrayList<Integer>();

1 Like