Results 1 to 2 of 2

Thread: Create arraylist dynamically

  1. #1
    Geek_Guest
    Guest

    Create arraylist dynamically

    Question asked by visitor prathap

    How can I create a no. of arraylist dynamically while i get the count


  2. #2
    Junior Member
    Join Date
    Apr 2007
    Answers
    8

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact