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

Method print

java/Chapter 8/Question8_1/Card.java:36–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 public void print() {
37 String[] faceValues = {"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"};
38 System.out.print(faceValues[faceValue - 1]);
39 switch (suit) {
40 case Club:
41 System.out.print("c");
42 break;
43 case Heart:
44 System.out.print("h");
45 break;
46 case Diamond:
47 System.out.print("d");
48 break;
49 case Spade:
50 System.out.print("s");
51 break;
52 }
53 System.out.print(" ");
54 }
55}

Callers 3

mainMethod · 0.45
printHandsAndScoreMethod · 0.45
debugPrintHashMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected