-
Create arraylist dynamically
Question asked by visitor prathap
How can I create a no. of arraylist dynamically while i get the count
-
Junior Member
Re: Create arraylist dynamically
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules