lab11b - how do i call a class into another class? : i do not get how to put the Card class into the Deck. please help me. this is very urgent-i need to turn this in by tomorrow..

(also, could you please explain what you did?
 thank you very much!!)

Here are the instructions:
You need to rewrite the constructor so that all 52 cards of a normal card deck are assigned to the cards array. Keep in mind that card information needs to be stored inside the Deck class and is not passed by parameter. Additionally, you need to re-define the toString method for the Deck class so that it can be used to display the attribute values in a convenient manner.  Make sure to take advantage of the toString method that already exists in the Card class.

You also need to add a shuffle method, which is called from the constructor.  The shuffle method is a private helper method in the Deck class. For this version you need to shuffle the deck by swapping the cards. Generate two random numbers in the [0..51] number range that will represent the indexes of the cards array and swap the cards. Make 1000 swaps and then display the cards. Use Math.random to generate random numbers.


    public class Lab11bvst
    {
    public static void main(String[] args)
    { 
      Deck deck = new Deck();
      System.out.println(deck);
    }
    }
        
    class Deck 
    {
    private Card[] cards;
    private int size;
       private String[ ] suits = {"Clubs","Diamonds","Hearts","Spades"};

    public Deck() 
    {
      size = 52;
      cards = new Card[size];
      
      
       }
   
     private shuffle(){
      
     }
    }


the Card class:

    public class Card
    {
       private String suit;
       private String rank;
       private int value;

       public Card(String s, String r, int v)
       {
          suit = s;
          rank = r;
          value = v;
       }

       public String getSuit()       { return suit; }
       public String getRank()       { return rank; }
       public int getValue()         { return value; }
   
       public void setSuit(String s) { suit = s; }
       public void setRank(String r) { rank = r; }
       public void setValue(int v)   { value = v; } 
   
       public String toString()
       {
          return "[" + suit + ", " + rank + ", " + value + "]";
       }
   
       public boolean matches(Card otherCard) 
       {
    return otherCard.getSuit().equals(this.suit)
    && otherCard.getRank().equals(this.rank)
    && otherCard.getValue() == this.value;
    }
    }
