Search:

Type: Posts; User: Kerr

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    14,618

    Re: TreeMap vs HashMap

    Ok, thanks, will take a look.
  2. Replies
    7
    Views
    14,618

    Re: TreeMap vs HashMap

    Thanks :).

    helloworld922, about that hash function thing, does this mean that if I make a class that I use as a key, I should provide my own hash function?
  3. Replies
    7
    Views
    14,618

    Re: TreeMap vs HashMap

    So, basically it is best to use HashMap unless you are interested in preserving order?
  4. Replies
    7
    Views
    14,618

    TreeMap vs HashMap

    Hi all.

    I have been wondering about TreeMaps and HashMaps for a while. Here is what I have understood from the javadocs.

    TreeMap is based on a a form of binary tree (red-back tree?). TreeMap is...
Results 1 to 4 of 4