I am having a method(function) that is supposed to add a (8*6)Array to an Array list. Function is called several times.
int [][] KeySelection = new int [8][7];
for(int i=0;i<KeySelection.length;i++){
for(int j=0;j<KeySelection[0].length;j++){
KeySelection[i][j] = (int) (Math.random () * 2);
}
}
Each time this function is called a totally new KeySelection Array is done. What i need now is to declare an array list so that it could store all the KeySelection Arrays in that list.
So that when i need the first KeySelection Table i could find it in the first index of the Array list. Could somebody Help