title: Java Constructor that takes an Array
body: <p>How do you create a constructor that takes and array of cards and adds them to a hand which is an arrayList? Below are my 3 constructors so far...</p>
  
  <p>"The class should provide a default constructor(creates an empty hand), a constructor that takes an array of cards and adds them to the hand and a constructor that takes a different hand and add the cards to this hand"</p>
  
  <p>Updated:</p>
  
  <pre><code>  public class Hand {
  
      private List&lt;Hand&gt; hand = new ArrayList&lt;Hand&gt;();
  
      public Hand(){
          hand = new ArrayList&lt;Hand&gt;();
      }
  
      public Hand(Card[] cards){
          //this.hand.addAll(Arrays.asList(cards));
          //this.hand = new ArrayList&lt;Hand&gt;(Arrays.asList(cards));]
      }
  
      public Hand(Hand cards){
           this.hand = Arrays.asList(cards);
      }   
    }
  </code></pre>