Here is my program
ArrayList<ArrayList<?>> matrix = new ArrayList(); // nested list so as to have each matrix.add(new ArrayList()); matrix.add(new ArrayList()); matrix.add(new ArrayList()); I know I can access each item of the list by using matrix.get(0) but what if I want to access the first item of the first nested list (I hope it is clear) That is what I would like to do. It would even be better if I could turn each of the nested list or even the entire list into a proper array with nested arrays inside but that may be a tall order. I am sorry my programming skills are really poor.
matrix.get(0).get(0)?matrix.get(0).get(0)bad?