HashMaps are all about O(n) random access. If you want to store an ordered list of key value pairs, make a pair object and store them in an ArrayList.
If you want both rapid random access and order preservation, use that HashMap, and also use an ArrayList to maintain the order. You can trivially wrap either of these implementations in your own Collection class. JWS ==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com