Why isn't my @override for contains working?
<pre><code>@Override
    public boolean contains(Object o) {
        if ((this.name).equals((String) o)) {
            return true;
        }
        else {
            return false;
        }
    }
</code></pre>

<p>I get the error: The method c<code>ontains(Object)</code> of type <code>Team</code> must override or implement a supertype method</p>
