Click or drag to resize

Deck Methods

The Deck type exposes the following members.

Methods
  NameDescription
Public methodCut
Cuts the deck of cards at the given location
Public methodPrint
Prints the cards in the deck
Public methodShuffle
Shuffles the deck Reference: http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collections.html#shuffle%28java.util.List%29
Public methodTakeTopCard
Takes the top card from the deck. If the deck is empty, returns null
Top
See Also