Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. /**
  2.  *
  3.  * @author Weronika Jasiak
  4.  *
  5.  */
  6. public class Main {
  7.  
  8.     public static void main(String[] args) {
  9.         Deck deck = new Deck();
  10.         //
  11.         Card X;
  12.         if(deck.getCards() != 0) {
  13.             System.out.println("Deck of " + deck.getCards() + " cards");
  14.             X = deck.shuffle();
  15.             System.out.println(X.toString());
  16.         }
  17.         else {
  18.             System.out.println("Try again!");
  19.         }
  20.        
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement