Skip to content

Instantly share code, notes, and snippets.

@karan
Last active December 26, 2016 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karan/84c557c605ab0d7e94eba6fef3d9018d to your computer and use it in GitHub Desktop.
Save karan/84c557c605ab0d7e94eba6fef3d9018d to your computer and use it in GitHub Desktop.
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