Ciao a tutti,
io ho un Hashtable, come faccio a farmi ridare tutti gli elementi che ho caricato? sia chiave che valore?
Se non erro drovrei usare Enumeration.. ma come si usa?
Grazie
Ciao a tutti,
io ho un Hashtable, come faccio a farmi ridare tutti gli elementi che ho caricato? sia chiave che valore?
Se non erro drovrei usare Enumeration.. ma come si usa?
Grazie
codice:Hashtable ht = new Hashtable(); Enumeration keys = ht.keys(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); Object value = ht.get(key); }
grazie