java hashmap basic question
<pre><code>HashMap model1 = wordobject.getMap();
Set sample = model1.keySet();
Iterator it = sample.iterator();
</code></pre>

<p>==
Can you please explain me the above 3 lines?
I see that we are trying to get the hash table from the object and get it assigned to the HashMapmodel1.</p>

<p>1) what is keyset?
2) what does .iterator do?</p>
