import java.io.*;
import java.util.*;

/**********************************************************************
* This class represents a Card with a Rank and a Suit.
*
* @author Jonathan Herman
* @version 1
**********************************************************************/
// Elizabeth Adams
// Date: 3/06/07
// PA 2
// Section: 2

public class Card
{
	private Rank rank;
	private Suit suit;
	
	/**
	* This constructor creates a Card object with a given Rank and Suit.
	* 
	* @param rank The Card's Rank.
	* @param suit The Card's Suit.
	*/
	public Card (Rank rank, Suit suit)
	{
		this.rank = rank;
		this.suit = suit;
	}
	
	/**
	* This method returns the point value of the card.
	*
	* @return The point value of the card.
	*/
	public int getPoints()
	{
		return rank.getPoints();
	}
		
	/**
	* This method returns a String representation of the card.
	*
	* @return The String represenation of the card.
	*/
	public String toString()
	{
		return rank + " of " + suit;
	}
	
} // end Card class