-
Hashtable FIFO problem
Hi
I have one problem using the Hastable. The problem is some thing like this.
Dynamically (user's reuqest form) i am putting the data into the hashtable
and maintaining the hashtable object in session. Using Enumerator object
if i try to fetch the total information of hastable, enumerator is giving
the information randomly instead of showing info as FIFO(First in First Out)
way.What could be the problem?How to rectify the problem?Are there any other
solutions?
Thanks
Sudhakar Chavali
-
Re: Hashtable FIFO problem
This is a subject that has come up before. I think I remember that there
might be a third party API you can buy or use that won't have this issue.
Hashmap uses a hash table to store items and is really only good as a lookup.
If you don't need the functionality of a Hashmap (key, value) then use an
ArrayList. Look at TreeMap. If you need the functionality of
both then you maybe should use both.
Mark
Look at this link on Java collections - http://developer.java.sun.com/develo...ringJava/Ch17/
"Sudhakar Koundinya" <sudhakarchavali@hotmail.com> wrote:
>
>Hi
>
>I have one problem using the Hastable. The problem is some thing like this.
>Dynamically (user's reuqest form) i am putting the data into the hashtable
>and maintaining the hashtable object in session. Using Enumerator object
>if i try to fetch the total information of hastable, enumerator is giving
>the information randomly instead of showing info as FIFO(First in First
Out)
>way.What could be the problem?How to rectify the problem?Are there any other
>solutions?
>
>Thanks
>Sudhakar Chavali
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks