Originally posted by Avinash Sridhar: ...Only the keys are getting displayed, but the value corresponding to the keys are not getting displayed at all.
IS this information sufficient...
We would need to see the code that is supposed to be displaying these things. What you've shown should work...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Joined: Feb 23, 2007
I hope order is not important.
Joined: Apr 11, 2007
Thanks for the replies, The order is important, and i have used LinkedHashMap. I got this to work. Thanks a lot for spending time over this.
Joined: Oct 13, 2005
You have managed to get a Set which only contains the keys. Look back in the API for HashMap and you should be able to find a set with entries in; go through the list of methods. You may have to click on the links to find other classes.
You seem to have got more help while I was writing this post.[/edit] [ April 11, 2007: Message edited by: Campbell Ritchie ]