jueves, 19 de noviembre de 2009

JAVA: Recorrer un HashMap

Iterator it = hashMap.entrySet().iterator();
while (it.hasNext()) {
Map.Entry e = (Map.Entry)it.next();
System.out.println(e.getKey() + " " + e.getValue());
}

No hay comentarios:

Publicar un comentario

Me interesa mucho tu opinión, consejo, aporte, sugerencia y todo lo que tengas para decir. Cualquier aporte enriquecerá este blog.
Desde ya muchas gracias!