/* * Card.java * * A blueprint class for objects that represent a single playing card * that has a rank and a suit. * * starter code: CS 112 Staff (cs112-staff@cs.bu.edu) * completed by: */ public class Card { /* constants for the ranks of non-numeric cards */ public static final int ACE = 1; public static final int JACK = 11; public static final int QUEEN = 12; public static final int KING = 13; /* other constants for the ranks */ public static final int FIRST_RANK = 1; public static final int LAST_RANK = 13; /* * class-constant array containing the string representations * of all of the card ranks. * The string for the numeric rank r is given by RANK_STRINGS[r]. */ public static final String[] RANK_STRINGS = { null, "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K" }; /* * class-constant array containing the char representations * of all of the possible suits. */ public static final char[] SUITS = {'C', 'D', 'H', 'S'}; /* Put the rest of the class definition below. */ }