This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
pete stein
Bartender
Joined: Feb 23, 2007
Posts: 1561
posted
0
I hope order is not important.
Avinash Sridhar
Greenhorn
Joined: Apr 11, 2007
Posts: 6
posted
0
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.
avinash
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32688
4
posted
0
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.
[edit]You seem to have got more help while I was writing this post.[/edit] [ April 11, 2007: Message edited by: Campbell Ritchie ]