public int hashCode() {
int h = hash;
//Default to 0 ### String类中的私有变量,
if (h == 0 && value.length > 0) {
//private final char value[];
// Sting类中保存的字符串内容的的数组
char val[] = value;
for (int i = 0; i < value.length; i++) {
h = 31 * h + val[i];
}
hash = h;
}
return h;
}