[b]Question asked by visitor prathap[/b]
How can I create a no. of arraylist dynamically while i get the count
Printable View
[b]Question asked by visitor prathap[/b]
How can I create a no. of arraylist dynamically while i get the count
Create an array of ArrayList obejcts depending on the count you provide and then use it accordingly in the code.
e.g.
using System.Collection; // this namespace holds the definition for ArrayList
ArrayList[] arr= new ArrayList[count];
int capacityForList=30;
arr[0]= new ArrayList(capacityForList);
If you have any other solution please do reply me.