Java hash code with long strings
807580Feb 17 2010 — edited Feb 17 2010Hi
I have a set of 6 keys that are represented by a string but with long length such like 20 character each string .
I want to save these 12 keys as one key in HashMap is it recommended to concatenate all the string and put it as a key in the map ,I think itÂ’s not good
Because there is a big overhead of performance while calculation the hash code method ,can any one please suggest how java can deal with this issue
Thanks