how to access the elements in a hashMap with order


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to access the elements in a hashMap with order

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    28

    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?


    Thanks

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    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, 05:10 PM
  2. Downgraded Access ' 97 fails
    By Setya in forum VB Classic
    Replies: 4
    Last Post: 06-29-2001, 11:06 PM
  3. Access to SQL server
    By Nate in forum Database
    Replies: 29
    Last Post: 05-09-2001, 11:04 AM
  4. Replies: 0
    Last Post: 11-20-2000, 06:32 AM
  5. Access 2000 automation from VB6
    By Mak Foka in forum authorevents.kurata
    Replies: 3
    Last Post: 04-18-2000, 09: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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