DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005

    how to access the elements in a hashMap with order

    Does anybody know how to access the elements in a hashMap with order.

    I know set is a collection that doesn't gaurantee the order so the iterator of keySet will not gaurantee the order.

    Is there any way to solve this?


  2. #2
    Join Date
    Oct 2005
    New Jersey
    First of all, are you talking about Map or Set???

    If you want a sorted Map, you can use the TreeMap class.
    Happiness is good health and a bad memory.

Similar Threads

  1. Will MDAC 2.5 mess up an Access 2 or 95 Developers PC ??
    By David Lewinski in forum VB Classic
    Replies: 0
    Last Post: 07-26-2001, 04:10 PM
  2. Downgraded Access ' 97 fails
    By Setya in forum VB Classic
    Replies: 4
    Last Post: 06-29-2001, 10:06 PM
  3. Access to SQL server
    By Nate in forum Database
    Replies: 29
    Last Post: 05-09-2001, 10:04 AM
  4. Replies: 0
    Last Post: 11-20-2000, 05:32 AM
  5. Access 2000 automation from VB6
    By Mak Foka in forum authorevents.kurata
    Replies: 3
    Last Post: 04-18-2000, 08:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.