Last active
December 26, 2016 07:19
-
-
Save karan/84c557c605ab0d7e94eba6fef3d9018d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CoinDenomination { | |
PENNY(1), NICKLE(5), DIME(10), QUARTER(25); | |
private int value; | |
CoinDenomination(int v) { | |
value = v; | |
} | |
String getValue() { | |
return value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment