MCPcopy Index your code
hub / github.com/careercup/ctci / dealCard

Method dealCard

java/Chapter 8/Question8_1/Deck.java:50–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 public T dealCard() {
51 if (remainingCards() == 0) {
52 return null;
53 }
54
55 T card = cards.get(dealtIndex);
56 card.markUnavailable();
57 dealtIndex++;
58
59 return card;
60 }
61
62 public void print() {
63 for (Card card : cards) {

Callers 3

dealHandMethod · 0.95
dealInitialMethod · 0.80
playHandMethod · 0.80

Calls 3

remainingCardsMethod · 0.95
markUnavailableMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected