Select five random cards objects from the deck
<p>Im trying to make an array in order to store 52 card objects into a "deck".
because i need both the string suit and the int value to be stored in the array i was going to try and use the constructor as the array type and it seems to work. I just wanted to know in using this method will my Card array work like a normal array. will i be able to use the built in methods on this array.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>public class Card {
  
  String suit;
  int value;
  
  public Card(String s, int v) {
    suit = s;
    value = v;
  }
}

public class Driver {
  
  Card[] deck = new Card[52];
}</code></pre>
</div>
</div>
</p>