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...
Type: Posts; User: KevinWorkman
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...
It really depends on context, but I'd say that's a fair enough statement.
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...