MCPcopy Create free account
hub / github.com/careercup/ctci / getSuitFromValue

Method getSuitFromValue

java/Chapter 8/Question8_1/Suit.java:18–31  ·  view source on GitHub ↗
(int value)

Source from the content-addressed store, hash-verified

16 }
17
18 public static Suit getSuitFromValue(int value) {
19 switch (value) {
20 case 0:
21 return Suit.Club;
22 case 1:
23 return Suit.Diamond;
24 case 2:
25 return Suit.Heart;
26 case 3:
27 return Suit.Spade;
28 default:
29 return null;
30 }
31 }
32}

Callers 1

initializeDeckMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected