Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String findHand(List<Card> cards) throws NullPointerException {
- try {
- for (HandInterface template : getHandsTemplates()) {
- if (template.isSatisfiedBy(cards)) {
- return template.getName();
- }
- }
- } catch (NullPointerException ignored) {
- }
- throw new DupaException();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement