daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Jul 17th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * A class of a BridgeHand
  3.  * @author Corey
  4.  *
  5.  */
  6. public class BridgeHand
  7. {
  8.    
  9.     private String [] hand = new String [13];//variable to hold the number of cards
  10.    
  11.     /**
  12.      * Create a new BridgeHand
  13.      *
  14.      * @param card the hand read from the file
  15.      */
  16.    
  17.     public BridgeHand(String [] card)
  18.     {
  19.         for (int i = 0; i < hand.length; i++)
  20.         {
  21.             hand[i] = card + "";
  22.         }
  23.     }
  24.     /**
  25.      * getter for BridgeHand
  26.      * @return hand
  27.      */
  28.     public String[] getBridgeHand()
  29.     {
  30.         return hand;
  31.     }
  32. }
RAW Paste Data
Top