Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: how to buld an array in loop

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to buld an array in loop

    Hi every one
    I'm making a program and it's retrieving the data . I want to put each one in a cell of an array .
    The amount of data is unknown so I don't know how many cells I need for the array .

    How can I increase the number of cells in a "while"?

    Thanks


  2. #2
    Junior Member
    Join Date
    Jun 2012
    Location
    hyderabad
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to buld an array in loop

    better go for collections (arraylist) instead of arrays

Similar Threads

  1. Array and loop
    By Kristenw17 in forum Loops & Control Statements
    Replies: 1
    Last Post: November 16th, 2012, 04:04 AM
  2. Array and Loop?
    By Kristenw17 in forum Loops & Control Statements
    Replies: 1
    Last Post: November 13th, 2012, 02:23 PM
  3. Array and Loop?
    By Kristenw17 in forum Loops & Control Statements
    Replies: 1
    Last Post: November 13th, 2012, 04:58 AM
  4. Loop through a 2d array of objects
    By ssjg0ten5 in forum Loops & Control Statements
    Replies: 1
    Last Post: March 28th, 2012, 09:53 PM
  5. For loop in array
    By Mickeydus in forum Loops & Control Statements
    Replies: 2
    Last Post: March 26th, 2012, 02:37 PM