Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CardClient {
- public static void main(String[] args) {
- CardDeck cd = new CardDeck();
- Card dealt = new Card();
- System.out.println(cd.toString());
- for (int i=0; i<5; i++) {
- for (int j=0; j<4; j++) {
- dealt = cd.deal();
- System.out.println(dealt.toString());
- } // end for j
- System.out.println();
- } // end for i
- System.out.println("Length of cards array: "+cd.getLength());
- } // end main()
- } // end class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement