I want to use a ArrayList instead of an array on the following code:
for(int k=0;k<SIZE;k++) //size is 9
for(int j=0;j<SIZE;j++)
ar1[k][j] = buttons[k][j].getText();
That’s how the ArrayList should look like I guess:
ArrayList<ArrayList<String>>ar1 = new ArrayList<ArrayList<String>>();
But it’s so confusing since I can’t use the get method .. I don’t know how to do that.
Try this way
Output: