Error in Eclipse: The method ... from the type ... refers to the missing type Entry

eclipse, java

Solution

It's an inner class of `Map`.

Either

import java.util.Map.Entry;

or

public Map.Entry<K,V> insert(K k, V v) throws InvalidKeyException  {
    //code here
}

Problem

I'm trying to use a function that uses the `Entry` object but I am getting the above error message. The function looks like this: ``` public Entry<K,V> insert(K k, V v) throws InvalidKeyException { //code here } ``` I tried importing `java.util.*` but that didn't work. Could someone please explain to me what this error message is telling me and how to resolve it?

Original source