Advertisement
Guest User

hdfh

a guest
Apr 25th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class Deck {
  2. private Card [] deck;
  3. public Deck(){
  4. this.deck = new Card [52];
  5. }
  6. public void add(Card card){
  7. deck[51] = card;
  8. }
  9. public void fill(){
  10. for (Suit s: Suit.values()){
  11. for(Rank r: Rank.values()){
  12. add(new Card(r.s));
  13. }
  14. }
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement