If you don't want a 2 dimensional array or an arraylist, I have no idea what will solve your problem.
Type: Posts; User: Norm
If you don't want a 2 dimensional array or an arraylist, I have no idea what will solve your problem.
For an ArrayList read the API doc: Java Platform SE 7
An ArrayList can contain a list of any type of object.
Also see the tutorial: ...
Are you asking how to define a two dimensional array?
int[][] twoD = new int[2][];
twoD[0] = new int[6]; // 6 elements for first one
twoD[1] = new int[123]; // 123 elements for...