Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    14,616

    Re: TreeMap vs HashMap

    I'll answer this one even though you directed it towards helloworld922. Hope he doesn't mind.

    You don't have to write your own hash function- there's already a hashcode() function in Object, which...
  2. Replies
    7
    Views
    14,616

    Re: TreeMap vs HashMap

    It really depends on context, but I'd say that's a fair enough statement.
  3. Replies
    7
    Views
    14,616

    Re: TreeMap vs HashMap

    From the API for TreeMap: This implementation provides guaranteed log(n) time cost for the containsKey, get, put and remove operations.

    From the API for HashMap: This implementation provides...
Results 1 to 3 of 3