I am converting the incoming string into hash code by doing the following function but some of the values are negative. I don\'t think hash values should be negative. Please
sometimes the hashcode calculation itself goes beyond the Integer.MAX_VALUE, i.e 2147483647. what happens then is that we get a negative integer after the overflow. Negative hashcode is perfectly valid!