title: Issue printing out objects from arraylist
body: <p>First i have a class called card with this code</p>
  
  <pre><code>public class Card
  {
  private int value;
  private String suit;
  // private int value;
  //private String rank;
  public Card (int v, String s)
  {
      value=v;
  suit=s;
  }
  
  public int random()
  {
      int randomNum = ((int)(Math.random() * 100) % 13 +1);
      return randomNum;
  }
  
  public void displayCard()
  {
      System.out.println(value + " of " + suit);
  }
  
  }
  </code></pre>
  
  <p>then i have a class called deck with this code</p>
  
  <pre><code>import java.util.*;
  
  public class Deck 
  {
  public ArrayList&lt;Card&gt; card;
  private ArrayList&lt;String&gt; suits;
  private ArrayList&lt;Card&gt; hand;
  
  
  public Deck()// time to build a deck
  {
  
      card=new ArrayList&lt;&gt;();
      suits=new ArrayList&lt;&gt;();
  
      suits.add("Hearts");
      suits.add("Spades");
      suits.add("Clubs");
      suits.add("Diamonds");
  
      for (int y=2; y&lt;15; y++)
          {
              card.add(new Card(y,suits.get(0)));
          }
  
      for (int y=2; y&lt;15; y++)
          {
              card.add(new Card((y),suits.get(1)));
          }
  
      for (int y=2; y&lt;15; y++)
          {
              card.add(new Card((y),suits.get(2)));
          }
  
      for (int y=2; y&lt;15; y++)
          {
              card.add(new Card((y),suits.get(3)));
          }
  
  
  
  }//end of public deck
  
  
  public ArrayList deal()// deal method
  {
      hand=new ArrayList&lt;&gt;();
  
  
      for(int x = 0; x &lt; 5; ++x)//build 5 card hand
          {
          hand.add(card.get(x));
  
          System.out.println(card.get(x));
  
           }
  
      return hand;
  
  }//end of public void deal
  
  }// end of public class deck
  </code></pre>
  
  <p>then i have the main</p>
  
  <pre><code>import java.util.ArrayList;
  
  import java.util.*;
  
  public class gamePlay 
      {
          private static gamePlay player1;
          public Deck fullDeck;
          private ArrayList&lt;Card&gt; yourHand;
  
  
      public gamePlay()
      {
          fullDeck=new Deck();
          System.out.println("Your poker hand is a");
          yourHand = fullDeck.deal();
  
          //System.out.println(yourHand);
  
      }
  public static void main(String[] args) 
  {
  player1 = new gamePlay();        
  }
  }
  </code></pre>
  
  <p>It is printing out some crazy stuff for the value and suit of the cards in the hand 
  i think they are either memory locations from the arraylist or hexidecimal values i am not sure need it to print suit and rank any help is appreciated</p>