 |
Hashcode Of A String In Java
Many of the Java programmers know what 'Hashcode' means, but don't really know how exactly it is calculated and why 31 is used to calculate the hashcode. Below is the code snippet from Java 1.6, which calculates the hashcode for a string: public int hashC
java-bytes.blogspot.com |
 |