How can i loop thorugth a HashTable keys in android?
<p>I have a hashtable filled with data, but I don't know the keys
How can I loop througth a HashTable keys in android?
I'm trying this, but it doesnt work:</p>

<pre><code>Hashtable output=new Hashtable();
output.put("pos1","1");
output.put("pos2","2");
output.put("pos3","3");


ArrayList&lt;String&gt; mykeys=(ArrayList&lt;String&gt;)output.keys();
for (int i=0;i&lt; mykeys.size();i++){             
   txt.append("\n"+mykeys.get(i));
}
</code></pre>
