Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public String findHand(List<Card> cards) throws NullPointerException {
  2. try {
  3. for (HandInterface template : getHandsTemplates()) {
  4. if (template.isSatisfiedBy(cards)) {
  5. return template.getName();
  6. }
  7. }
  8. } catch (NullPointerException ignored) {
  9.  
  10. }
  11. throw new DupaException();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement