title: Compare in Array
body: <p>I have a question regarding information in an array.</p>
  
  <p>Right now I'm making a card game which needs a special type of card deck.
  The deck contains <strong>42 cards</strong> no suits just a value of <strong>1 - 21</strong>. (2 cards of every value)
  I need to check the players hand for 3 specific cards, the lowest - 1, 2 and 3.
  if the hand contains - what is called 3 crappy cards the game will be over and the dealer gives you a new set of five cards.</p>
  
  <p>In some way i need to go through <strong>the hand (5 cards)</strong> and check if it contains 3 of the crappy card. There is a total of 6 bad cards in the deck.</p>
  
  <p><code>private ArrayList&lt;Card&gt; playerHand = new ArrayList&lt;Card&gt;();</code> is what I'm using.</p>
  
  <p>To get the value i use getters/setters - </p>
  
  <pre><code>for (int i = 0; i &lt; playerHand.size(); i++) {
      int getValueOfCard = playerHand.get(i).getValue();
  }
  </code></pre>
  
  <p>How do I solve this!? >.&lt;</p>