i have to store and retrieve integer value from three dimensional array recursively.
For example i have a=1,b=2,c=3 and a=3,b=2,c=1 and a=1,b=2,c=3 etc as input .
then i should get output of all rows and columns in three dimensional array list
i tried this i am getting error as index=1 size=1
For example i have a=1,b=2,c=3 and a=3,b=2,c=1 and a=1,b=2,c=3 etc as input .
then i should get output of all rows and columns in three dimensional array list
i tried this i am getting error as index=1 size=1
Code:
result.add(new ArrayList<Integer>());
((ArrayList) result.get(row)).add(bin);
((ArrayList) result.get(row)).add(total_waste);
((ArrayList) result.get(row)).add(aa.size());
System.out.println(((ArrayList) result.get(row)).get(0) + " ");
System.out.println(((ArrayList) result.get(row)).get(1) + " ");
System.out.println(((ArrayList) result.get(row)).get(2) + " ");