Skip to content

Instantly share code, notes, and snippets.

/Rank.java
Created Jan 26, 2018

Embed
What would you like to do?
final class Rank {
private int value;
public Rank(int value) {
if (value < 1 || value > 13) {
throw new InvalidRankValue(value);
}
this.value = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.