diff --git a/src/de/hs_mannheim/informatik/blackjack/Hand.java b/src/de/hs_mannheim/informatik/blackjack/Hand.java index 0476ad9..f0126b9 100644 --- a/src/de/hs_mannheim/informatik/blackjack/Hand.java +++ b/src/de/hs_mannheim/informatik/blackjack/Hand.java @@ -4,10 +4,34 @@ import java.util.ArrayList; public class Hand { - ArrayList hand = new ArrayList<>(); + private ArrayList hand = new ArrayList<>(); Hand(Kartenstapel ks){ + hand.add(ks.getKarte()); + hand.add(ks.getKarte()); + } + public String toString(){ + String hand = ""; + for (int i = 0; i