MCPcopy
hub / github.com/careercup/ctci / possibleScores

Method possibleScores

java/Chapter 8/Question8_1/BlackJackHand.java:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 }
23
24 private ArrayList<Integer> possibleScores() {
25 ArrayList<Integer> scores = new ArrayList<Integer>();
26 if (cards.size() == 0) {
27 return scores;
28 }
29 for (BlackJackCard card : cards) {
30 addCardToScoreList(card, scores);
31 }
32 return scores;
33 }
34
35 private void addCardToScoreList(BlackJackCard card, ArrayList<Integer> scores) {
36 if (scores.size() == 0) {

Callers 1

scoreMethod · 0.95

Calls 2

addCardToScoreListMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected