Package cs171a2

Class Deck

java.lang.Object
cs171a2.Deck

public class Deck extends Object
This class represents a standard deck of 52 playing cards.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new deck of cards, consisting of 52 cards in four suits (hearts, diamonds, clubs, and spades) and 13 ranks (Ace, 2-10, Jack, Queen, and King).
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Deck

      public Deck()
      Constructs a new deck of cards, consisting of 52 cards in four suits (hearts, diamonds, clubs, and spades) and 13 ranks (Ace, 2-10, Jack, Queen, and King).