This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Converting Hash map to linked list" Watch "Converting Hash map to linked list" New topic
Author

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
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

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:


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Converting Hash map to linked list
 
Similar Threads
Sorting Maps
K&B Java 5 scjp ch7 page 24/114
Storing ActionForm&action class-WHERE?
Html atribute grabber
HashMap and LinkedHashMap