Hi guys,

I have a HashMap, and it stored a bunch of Strings... the key is a String and the value is a Set of String...

and it looks something like this

{ D=[E,C], C=, E=, B=[A] }

what is the best way to iterate through this map so i get two list. i.e.

D-E-B-A and the other would be D-C-B-A

Recommended Answers

All 2 Replies

Member Avatar for iamthwee

Hi guys,

I have a HashMap, and it stored a bunch of Strings... the key is a String and the value is a Set of String...

and it looks something like this

what is the best way to iterate through this map so i get two list. i.e.

D-E-B-A and the other would be D-C-B-A

I don't get it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.