How do i parse a map (foreach) in the same order i created it (JAVA)

Posted by user348058 on Stack Overflow See other posts from Stack Overflow or by user348058
Published on 2010-05-22T23:58:52Z Indexed on 2010/05/23 0:00 UTC
Read the original article Hit count: 195

Filed under:
|
|
|

So i have a map that i created (inserted data) in an order i wanted. When parsing the map the 1st key returned in foreach is not the first key i inserted. Is there a way for that to happen?

Also sorting my map is kinda tricky cause it has to be sorted by Value and in specific field within the Value. Ty

© Stack Overflow or respective owner

Related posts about java

Related posts about map