public Card getCard(int position)
{
/**
* Gets the card from the specified position in the hand.
* Null is returned if the position isn't in the hand.
*/
if(position>=0 && position < hand.size())
return (Card)hand.removeElementAt(position);
else
return null;
}
error message: return (Card)hand.removeElementAt(position); is highlighted, "inconvertible types"