- 博客(1)
- 收藏
- 关注
原创 Why does Java's hashCode() in String use 31 as a multiplier?
Why does Java's hashCode() in String use 31 as a multiplier? In Java, the hash code for a String object is computed as s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] using int arithmetic, where s...
2010-12-13 12:17:29
157
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人