Originally posted by Meir Yan:
Well its more complicated then that , you see I have object that extends the hashtable class and I cant
Change this implementation , and this class needs to have the ability to keep the order of the elements that was
Enterd , maybe I can play with some inner methods inside the class that the end result will give me ordered hashtable ?
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Originally posted by Meir Yan:
cant I get the keys and values into map = new MapTree() and then copy this ordered map into hashtable somehow ?
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
"I'm not back." - Bill Harding, Twister
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Originally posted by Bill Shirley:
SortedMap & TreeMap are what you're interested in.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
"I'm not back." - Bill Harding, Twister
Water proof donuts! Eat them while reading this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|