public V get(K key) {
        for (int i = 0; i < currentSize; ++i) {
            if (key == keys[i]) {
                currentIndex = i;
                return values[i];
            }
        }
        return null;
    }