Depends on what exactly you want. Try:
for(int i=0;i<a.length;i++){ newList.add(new ArrayList<String>()); for(int j=0;j<a.length;j++){ newList.get(i).add(a[i][j]); } }
Then you can access the elements, for example:
newList.get(1).get(2);
source share