Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to go over a HashMap faster than with an ArrayList

807588May 3 2009 — edited May 3 2009
Hello

I wonder how can i go over a HashMap to show it for example or to change properties in each element...etc.
I have used it because i know it can be faster than an ArrayList for something, for example, to order it...etc.

Insted of using an iterator after converting it into a collection, how can i order it or go over it faster than with an Arraylist?

Thank you,
Sorry for the language.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2009
Added on May 3 2009
4 comments
978 views