Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Create arraylist dynamically

This is a discussion on Create arraylist dynamically within the C# forums, part of the Software Development category; Question asked by visitor prathap How can I create a no. of arraylist dynamically while i get the count...

Go Back   Geeks Talk > Software Development > C#
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 04-13-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
Create arraylist dynamically

Question asked by visitor prathap

How can I create a no. of arraylist dynamically while i get the count
Reply With Quote
The Following User Says Thank You to Geek_Guest For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 04-15-2007
Junior Member
 
Join Date: Apr 2007
Location: New Delhi
Posts: 9
Thanks: 1
Thanked 2 Times in 2 Posts
bhaskarjha is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Development > C#

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
An ArrayList and a Vector FantaGuy Java 5 03-19-2009 12:34 PM
How to check planidrome dynamically? JobHelper C and C++ 1 07-27-2007 02:47 AM
Deallocating dynamically allocated heap JobHelper C and C++ 4 07-25-2007 06:38 AM
Must I create variable when I create scenario? haiintel LoadRunner 2 03-27-2007 11:42 PM
Dynamically pass parameter file in 8.1.1 JobHelper Data Warehousing 0 12-24-2006 07:30 AM


All times are GMT -4. The time now is 04:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved