Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Add new values to HashMap?

    Hi all,

    I am just wondering if anyone has encountered adding a new item to a HashMap? If for example i previously added 2 items to HashMap HM1, when i try to execute HM1.put(abc,123) to appended, it can't work. All of these are done in the same page but in different function calls. However, i managed to get the old value of HM1 via a session. So that's no issue here in terms of retrieving the HM1 from the session. Any thoughts? Thanks

  • #2
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    You would need to post your code in order for us to look at what you're doing and what you may be doing wrong.

    Please show us, at the least, the instantiation of the HashMap and the use of it there-of.
    "To iterate is human, to recurse divine." -L. Peter Deutsch

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks! I have managed to solve my problem due to the unique keyset issue.


  •  

    Posting Permissions

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