[Logo]
Forums Register Login
Values of a HashMap
Hi,

I have been trying to put a Collection as a value in a HaspMap with the Key being a String. But later when i am trying to access the same value, its returning an empty list instead of the Collection that is stored.

Please find the code below

The same code works, if instead of a Collection i am trying to return a String. Could anyone please let me know what the problem could be?
[ May 29, 2007: Message edited by: Jim Yingst ]
Hi - please use code tags to help make your code readable. I added them to your previous post.

The code you show looks good. Do you have any additional code that uses these methods and demonstrates a problem?
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 544 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 16, 2018 04:58:39.