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 3 of 3

Thread: first empty location in an array!?

  1. #1
    Junior Member keep smiling's Avatar
    Join Date
    Oct 2011
    Location
    Italy
    Posts
    14
    My Mood
    Cool
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Lightbulb first empty location in an array!?

    how to find the first empty location in an array?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: first empty location in an array!?

    Use a loop and some testing statement like an if

    What is an "empty location"? That will depend on the data type in the array.

  3. The Following User Says Thank You to Norm For This Useful Post:

    keep smiling (February 10th, 2012)

  4. #3
    Junior Member keep smiling's Avatar
    Join Date
    Oct 2011
    Location
    Italy
    Posts
    14
    My Mood
    Cool
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: first empty location in an array!?

    Quote Originally Posted by Norm View Post
    Use a loop and some testing statement like an if

    What is an "empty location"? That will depend on the data type in the array.
    yes it works !!!
    thanks

Similar Threads

  1. extended JPanel is empty
    By pottsiex5 in forum AWT / Java Swing
    Replies: 4
    Last Post: November 26th, 2011, 03:59 PM
  2. [SOLVED] find first empty cell?
    By prettynew in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 15th, 2011, 11:52 AM
  3. checking for empty strings?
    By Celeadyne in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 1st, 2010, 04:18 PM
  4. [SOLVED] Printing Array without printing empty elements
    By CarlMartin10 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 12th, 2010, 02:41 AM
  5. [SOLVED] Supressing empty lines and does not do until the end! Why ?
    By lumpy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 18th, 2010, 07:38 AM