
Can anyone suggest me how to use arraylist of an arraylist?? how to put data into it and get data from it???? becoz i want to make rows and column dynamic which can grow as per requirement?????/ plz help???

package collection.list.arraylist;
import java.util.ArrayList;
import java.util.ListIterator;
/**
*
* @author Abhishek
*/
public class arraylistinarraylist {
public static void main(String args[])
{
ArrayList al=new ArrayList();
al.add("one");
al.add("two");
al.add("three");
ArrayList al1=new ArrayList();
al1.add("four");
al1.add("five");
al1.add("six");
al.add(al1);
ListIterator itr=al.listIterator();
while(itr.hasNext())
{
System.out.println(itr.next());
}
}
}
for other ArratList example : http://abhishek-technicalwork.blogspot.in/2012/02/collectionarraylist.html
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.