Boolean includes (String key, String values[]) <your code here>: int index = keyToIndex(key);.
A technique called hashing is used to distinguish one particular object from a collection of related ones. Let's say a key is given to an item to make searching easier. One can use a straightforward array akin to a data structure to store the key/value combination, where keys (integers) can be used directly as an index to store values.
Hashing should be employed, nevertheless, when the keys are big and cannot be utilized as an index directly. During hashing, hash functions are used to break up huge keys into smaller ones. The values are then kept in a hash table, a type of data structure. Using linear probing the hashing method might be used to produce an array index that has already been used. If this is the case, we can look into each subsequent cell in the array until we discover one that is empty. This method is known as linear probing.
To know more about hashing click here:
https://brainly.com/question/13106914
#SPJ4