Ver Mensaje Individual
  #13 (permalink)  
Antiguo 24/06/2018, 09:12
Avatar de Fuzzylog
Fuzzylog
 
Fecha de Ingreso: agosto-2008
Ubicación: En internet
Mensajes: 2.511
Antigüedad: 15 años, 7 meses
Puntos: 188
Respuesta: Balanceos con Árboles Hash

Al mover de un mapa a otro estás pasando un valor en vez del objeto en sí

private static void passToMap(MyTreeMap<Integer,Persona> map1,MyTreeMap<Integer,Persona> map2){
map1.entrySet().forEach((e) -> {
map2.put(e.getKey(), e.getValue());
});
}

mira si con esto te va bien

private static void passToMap(MyTreeMap<Integer,Persona> map1,MyTreeMap<Integer,Persona> map2){
map1.entrySet().forEach((e) -> {
map2.put(e.getKey(), e);
});
}
__________________
if (fuzzy && smooth) {
fuzzylog = "c00l";
return true;
}