Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Main {
- Scanner s = new Scanner(System.in);
- public int GetInput(){
- System.out.println("How many cards would you like to draw?");
- int y = s.nextInt();;
- return y;
- }
- public static void main(String[] args) {
- Deck deck = new Deck();
- Card card;
- for (int i = 0;deck.getTotalCards() != 0; i++){
- card = deck.drawFromDeck();
- System.out.println(i + ": " + card.toString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement