/** * CS 231 — Project 1 * Card * * Purpose: * Represents one card in our simplified Blackjack game. */ public class Card { // TODO: Declare a private integer instance variable named value. // It stores the numeric value of this card. /** * Constructs a Card with the specified value. * * @param val the value of the card */ public Card(int val) { // TODO: Store val in the instance variable. } /** * Returns the value of this card. * * @return the value of the card */ public int getValue() { // TODO: Return this card's value. return 0; } /** * Returns a String representation of this card. * * A Card with value 5 should produce "5". * * @return the String representation of the card */ public String toString() { // TODO: Return the card's value as a String. return ""; } }