how to read input values from a dialog box to hash table and put those values to another dialog box in android?
<pre><code>void setdatatohash(String i, String s) {

    Hashtable&lt;String, String&gt; ht = new Hashtable&lt;String, String&gt;();
    ht.put(i, s);
    Enumeration e = ht.keys();
    String printDatatoDialog[];
    String st = null;
    for (int j =0; j&lt;=ht.size();j++){
     st =(String) ht.put(i, s);   
    String st1=(String)ht.get(s);
 //   printDatatoDialog={st};
   // System.out.println("Key :"+i+"  value :"+st);
    }
    for(int k=0;k&lt;=ht.size();k++){
        System.out.println("Data in Array" + st);

    }
}
</code></pre>
