thanks 'Greg H.' for the prompt reply.. my problem is solved now..
but i figured one more way of iterating through the array list, thought i would share with you, it goes as follows:
import java.util.*;
class al {
public static void main(String nav[]) {
String[] st1={"One"};
String[] st2={"One", "Two"};
String[] st3={"One", "Two", "Three"};
String[] st4={"One", "Two", "Three", "Four"};
String[] st5={"One", "Two", "Three", "Four", "Six"};
ArrayList obj=new ArrayList();
obj.addAll(Arrays.asList(st1, st2, st3, st4, st5));
for(int i=0; i<obj.size(); i++)
System.out.println(Arrays.toString((String[]) obj.get(i)));
}
}
Output-
[One]
[One, Two]
[One, Two, Three]
[One, Two, Three, Four]
[One, Two, Three, Four, Six]
thanking you again..