This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Converting Hash map to linked list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Converting Hash map to linked list" Watch "Converting Hash map to linked list" New topic

Converting Hash map to linked list

vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello all,
Is there any way of converting from hash map to linked list.please tell me.
thanks in advance.
Rob Spoor

Joined: Oct 27, 2005
Posts: 19697

First of all, you're posting in the wrong forum. This has nothing to do with Swing, AWT etc.

Second of all, what do you want to put in the linked list? The keys or the values?

Anyway, here's some code that should do it for you:

How To Ask Questions How To Answer Questions
GeeCON Prague 2014
subject: Converting Hash map to linked list