Advertisement
zenados

Random Card Main

Oct 23rd, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Main {
  4.     Scanner s = new Scanner(System.in);
  5.     public int GetInput(){
  6.         System.out.println("How many cards would you like to draw?");
  7.         int y = s.nextInt();;
  8.         return y;
  9.         }
  10.  
  11.     public static void main(String[] args) {
  12.         Deck deck = new Deck();
  13.         Card card;
  14.         for (int i = 0;deck.getTotalCards() != 0; i++){
  15.             card = deck.drawFromDeck();
  16.             System.out.println(i + ": " + card.toString());
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement