public V remove(K key)
{
   checkInitialization();
   V result = null;
   int keyIndex = locateIndex(key);
   if (keyIndex < numberOfEntries)
   {
      // Key found; remove entry and return its value
      result = dictionary[keyIndex].getValue();
      dictionary[keyIndex] = dictionary[numberOfEntries - 1];
      dictionary[numberOfEntries - 1] = null;
      numberOfEntries--;
   } // end if
   // Else result is null
   return result;
} // end remove
// Version 4.0
