Skip to content

Instantly share code, notes, and snippets.

@Michael0x2a
Created November 3, 2015 23:59
Show Gist options
  • Save Michael0x2a/8b7c241e89ace44e0e2f to your computer and use it in GitHub Desktop.
Save Michael0x2a/8b7c241e89ace44e0e2f to your computer and use it in GitHub Desktop.
// Michael Lee
// Section AP
// Tuesday, April 14, 2015
// Sample program: Deck.java
import java.util.List;
interface Deck {
public int size();
public boolean isEmpty();
public String dealCard();
public Deck dealCards(int amount);
public void addCard(String card);
public void mergeDeck(Deck other);
public void shuffle();
public List<String> toList();
public String toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment