Last active
August 29, 2015 14:03
-
-
Save jkcgs/a617e6a335941924bd20 to your computer and use it in GitHub Desktop.
Control jugadores
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.makzk.prueba.blackjack; | |
import java.util.Vector; | |
public class ControlJugadores { | |
private Vector<Jugador> jugadores = new Vector<Jugador>(); | |
public void eliminarJugador(String usuario) { | |
for(Jugador jugador: jugadores) { | |
if(jugador.getUsuario().equals(usuario)) { | |
jugadores.remove(jugador); | |
return; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment