diff options
Diffstat (limited to 'src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java')
| -rw-r--r-- | src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java b/src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java index 9c9cffe..f4cb322 100644 --- a/src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java +++ b/src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java @@ -3,6 +3,7 @@ */ package de.fhswf.in.inf.java1.aufgabe8; +import java.util.ArrayList; import java.util.List; /** @@ -29,13 +30,16 @@ public final class LottoZiehungMain * Command line arguments. */ public static void main(String[] args) - { - Lottery6OutOf49 spiel = new Lottery6OutOf49(); + { + List<Integer> l = new ArrayList<Integer>(); + l.add(1); + System.out.println(FloydAndBentley.sample(l, 1).size()); + System.out.println(FloydAndBentley.sample2(l, 1).size()); + Lottery6OutOf49 spiel = new Lottery6OutOf49(); + spiel.nextDraw(); List<Integer> ziehung = spiel.getLastDraw(); - Integer sonderzahl = spiel.getSuperzahl(); - System.out.println(ziehung + " SonderZahl: " + sonderzahl); } } |
