public String toString() //Displays the rank and suit of the card as a string
   {
      String suitName;
      String rankName;
      
      if (suit == SPADES)
         suitName = "spades";
      else if (suit == CLUBS)
         suitName = "clubs";
      else if (suit == HEARTS)
         suitName = "hearts";
      else
         suitName = "diamonds";

      
      if (rank == 1 || rank > 10) //If the rank is something other than a 1, 11, 12 or 13...
      {
         if (rank == ACE)
            rankName = "ace";
         else if (rank == JACK)
            rankName = "jack";
         else if (rank == QUEEN)
            rankName = "queen";
         else
            rankName = "king";
      }
      
      else
         rankName = rank + "";
         
      return ("the suit is " + suitName + " and the rank is " + rankName + "."); //Displays the suit name and the card's rank
   }