4
Answers

Nested ArrayList - Not Sure

jaguRita

jaguRita

17y
7.8k
1

Hello,

Arraylist str=new Arraylist();

str.Add("Apple");str.Add("Raspberry");str.Add("Orange");str.Add("Banana");str.Add("Jackfruit");

Arraylist myArraylist=new Arraylist();

myArraylist.Add(str); 

My Question : Is possible to add arraylist within another arraylist?

If it is possible how can i retrive the str arraylist elements using myArraylist?

Thanks in Advance.

Answers (4)