Storing and parsing variable length strings

D

dterzis

Hi again...

There seems to be a consensus on either a TreeMap or a Trie, and I
would certainly prefer to use the TreeMap, since it is a standard
component and apparently speed is not an issue.

However, having a look at the J2SE 1.4.2 API documentation, I doesn't
say how I could use a TreeMap to retrieve all entries that have a
common prefix with a certain key, and this functionality is essential
for my application. Am I missing something?

Thanks,

Dimitris
 
D

dterzis

Thanks Tom! I will try tailMap.

Would it be possible for you to check the link you provided? It always
takes me back at the start of this thread.

Cheers,

Dimitris
 
D

dterzis

Andrew,

Got there, but still the same result. So, it seems that Tom means this
thread anyway and points to an earlier message of his (#11)!

Thanks :)

Dimitris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,252
Latest member
MeredithPl

Latest Threads

Top