Results 1 to 3 of 3
  1. #1
    pabloma2002 is offline Member
    Join Date
    Dec 2010
    Posts
    25
    Rep Power
    0

    Default items.hasMoreElements

    while (items.hasMoreElements ()) iterates many more times than the number of contacts I have. Why?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by pabloma2002 View Post
    while (items.hasMoreElements ()) iterates many more times than the number of contacts I have. Why?
    My guess: You have more elements in items?

    But if you want a smarter answer, you may wish to ask a smarter question. Please read the link below on how to ask smart questions as it will tell you what information is needed for others to fully understand what your problem is and how to solve it.

    Luck.

  3. #3
    pabloma2002 is offline Member
    Join Date
    Dec 2010
    Posts
    25
    Rep Power
    0

    Default

    Thank you. Since I was working with contact names, i didn't remember there were also other fields stored in the same enumeration.

Similar Threads

  1. Removing Items In a GUI
    By 67726e in forum New To Java
    Replies: 3
    Last Post: 08-01-2010, 06:46 PM
  2. Apple Items
    By Snatch in forum New To Java
    Replies: 6
    Last Post: 04-05-2010, 12:12 AM
  3. jlist items
    By bullstreetboy in forum New To Java
    Replies: 6
    Last Post: 04-12-2009, 06:30 PM
  4. different sort of items
    By jrleonard in forum SWT / JFace
    Replies: 0
    Last Post: 12-23-2008, 03:41 PM
  5. Help, Editing Items in an array.
    By jaybeeb in forum New To Java
    Replies: 2
    Last Post: 12-09-2008, 10:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •