text: public int put(object key, int value){object _key = key;int _value = value;int index = findIndex(_key, keys);if (keys[index] != _key){if (++size > threshold){rehash();index = findIndex(_key, keys);}keys[index] = _key;values[index] = -1;}int result = values[index];values[index] = _value;return result;}