Correcciones de la práctica 1 en el apartado de entidades

parent f635b981
...@@ -140,7 +140,7 @@ public class Reserva { ...@@ -140,7 +140,7 @@ public class Reserva {
public boolean esViajero(String DNI){ public boolean esViajero(String DNI){
for(int i=0; i<pasajeros.size(); i++){ for(int i=0; i<pasajeros.size(); i++){
if(DNI == pasajeros.get(i)){ if(DNI.equals(pasajeros.get(i))){
return true; return true;
} }
} }
......
...@@ -112,10 +112,6 @@ public class SistemaCarPooling { ...@@ -112,10 +112,6 @@ public class SistemaCarPooling {
return viajesRealizados; return viajesRealizados;
} }
public void setViajesRealizadoss(List<Viaje> viajes) {
this.viajesRealizados = viajes;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment