
06/01/2015, 14:34
|
(Desactivado) | | Fecha de Ingreso: enero-2013
Mensajes: 289
Antigüedad: 12 años Puntos: 10 | |
Respuesta: Referirse a un MAP ejecutas 1 vez esta línea al principio del bucle
Map.Entry e = (Map.Entry)it.next();
y luego obtienes los valores tantas veces como te haga falta
System.out.println(e.getKey() + " " + e.getValue());
System.out.println(e.getKey() + " " + e.getValue());
System.out.println(e.getKey() + " " + e.getValue()); |