/**
 * A playing card.
 *
 * You must not modify this class.
 */
 
public class Card {
 
    // Used for printing, to allow columns of cards to line up.
    private final static String PRINTSPACE = "            ";

    // The name of the card.
    private String name;
    
    /**
     * Constructs a card.
     *
     * @param String name of the card. 
     */
     
    public Card (String name) {
    
        this.name = name;
    }
    
    /**
     * Returns the name of the card 
     * padded with an appropriate number of blanks so that if several cards
     * are printed on one line, and this is repeated on subsequent lines,
     * the cards will line up in columns.
     *
     * @return name of card.
     */
     
    public String toString() {
    
        return name + PRINTSPACE.substring(name.length());
    }
}
