/** A tennis player. */
public class Player {
 
  /** The player's name. */
  private String name;
  
  /** The number of wins. */
  private int wins;
  
  /** The number of losses. */
  private int losses;
  
  /** The total number of players. */
  private static int numPlayers;
  
  /** 
   * Create a player with the name n. 
   */
  public Player(String n) {
    name = n;
    numPlayers++;
  }
  
  /**
   * Increase the number of wins.
   */
  public void won() {
    wins++;
  }
  
  /**
   * Return the number of wins.
   */
  public int getWins() {
    return wins;
  }
  
  /**
   * Return a String representation of the
   * player.
   */
  public String toString() {
    return name + " Wins: " + wins 
      + " Losses: " + losses; 
  }
  
}
