DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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, 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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links