Type mismatch: cannot convert from element type Object to int
<p>Getting a basic error not sure since i am new to java on line where it says ht.keySet(),  Type mismatch: cannot convert from element type Object to int </p>

<pre><code>ht is a LinkedHashMap


for (int key : ht.keySet())
                    {
                        if(ht.get(key).size() == 0)
                        {
                             System.out.println("There is no errors in " + key) ;
                        }
                        else
                        {
                            System.out.println("ERROR: there are unexpected errors in " + key);
                        }
                    }

for (int key : ht.keySet())
                    {
                        if(ht.get(key).size() == 0)
                        {
                             System.out.println("There is no errors in " + key) ;
                        }
                        else
                        {
                            System.out.println("ERROR: there are unexpected errors in " + key);
                        }
                    }
</code></pre>
