Can't access the method of an object inside a map
<pre><code>public void showTablet () {
    for (Map.Entry&lt;String, Tablet&gt; entry : tableMap.entrySet()) {     
        //System.out.println(entry.getValue());
        System.out.println(entry.getPrice());
    }
}
</code></pre>

<p>there is a getPrice method in a Tablet, but i can't get it? what's the problem?</p>
