I have values that I\'d like to add into an ArrayList to keep track of what numbers have shown up. The values are integers so I created an ArrayList;
ArrayLi
Actually what u did is also not wrong your declaration is right . With your declaration JVM will create a ArrayList of integer arrays i.e each entry in arraylist correspond to an integer array hence your add function should pass a integer array as a parameter.
For Ex:
list.add(new Integer[3]);
In this way first entry of ArrayList is an integer array which can hold at max 3 values.