diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2014-11-26 14:57:09 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2014-11-26 14:57:09 +0100 |
| commit | 77bde510679581b31bf66f6ffc142468b1664671 (patch) | |
| tree | 851c45f48805d3faa828d31fbffbf9aeea7d0f05 /src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java | |
| parent | 699e0b41e966dc92bc90c49bdb32f2f71fd05309 (diff) | |
| download | Java1-77bde510679581b31bf66f6ffc142468b1664671.tar.gz Java1-77bde510679581b31bf66f6ffc142468b1664671.zip | |
Assignment No.8 after correction
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); } } |
