How to creat a loop through LinkedHashMap<String,ArrayList<String>>?
<p>Please help me to create a loop through <code>LinkedHashMap&lt;String,ArrayList&lt;String&gt;&gt; h</code>:</p>

<pre><code>    if (h.get("key1").size() == 0)
        System.out.println("There is no errors in key1.");
    else
        System.out.println("ERROR: there are unexpected errors in key1.");

    if (h.get("key2").size() == 0)
        System.out.println("There is no errors in key2.");
    else
        System.out.println("ERROR: there are unexpected errors in key2.");

    if (h.get("key3").size() == 0)
        System.out.println("There is no errors in key3.");
    else
        System.out.println("ERROR: there are unexpected errors in key3.");

    if (h.get("key4").size() == 0)
        System.out.println("There is no errors in key4.\n");
    else
        System.out.println("ERROR: there are unexpected errors in key4.\n");
</code></pre>
