Results 1 to 5 of 5

Thread: HashMap

  1. #1
    Shukaib_khan is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default HashMap

    Hi Everyone,
    I created Hash Map and now I don't know how I can show this Hash Map values in J List. Can anyone help me in this.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,253
    Rep Power
    25

    Default Re: HashMap

    In what order do you want to get the items out of the hashmap?

  3. #3
    Shukaib_khan is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Re: HashMap

    in any order but just want 2 add values to Jlist. If u gave example I can understand well.

  4. #4
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    5

    Default Re: HashMap

    Quote Originally Posted by Shukaib_khan View Post
    If u gave example I can understand well.
    Sun SDN Article - Customize Your JList Display

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,253
    Rep Power
    25

    Default Re: HashMap

    Which objects do you want from the hashmap, the keys or the values?
    The hashmap class has different methods to extract one or the other.

Similar Threads

  1. final HashMap hm=new HashMap();
    By sangramkeshari.jena in forum New To Java
    Replies: 4
    Last Post: 07-21-2011, 09:44 PM
  2. HashMap Help
    By digitol97 in forum New To Java
    Replies: 4
    Last Post: 09-13-2010, 02:38 AM
  3. Replies: 7
    Last Post: 12-08-2009, 07:17 PM
  4. HashMap Help
    By ScaryJello in forum New To Java
    Replies: 2
    Last Post: 04-15-2009, 09:18 AM

Posting Permissions

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