diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2014-12-07 19:15:58 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2014-12-07 19:18:03 +0100 |
| commit | 9acea903216dbe371dd7b41cbf23b46a5732bcb4 (patch) | |
| tree | 5a61491ad22e470db8151d2e07f163b011c72d6e /src/de/fhswf/in/inf/java1/aufgabe08/LottoZiehungMain.java | |
| parent | 8a53a8fca255e4a84ca0e35dac925a223738b98a (diff) | |
| download | Java1-9acea903216dbe371dd7b41cbf23b46a5732bcb4.tar.gz Java1-9acea903216dbe371dd7b41cbf23b46a5732bcb4.zip | |
Refactored the packagenames fo better sorting
Diffstat (limited to 'src/de/fhswf/in/inf/java1/aufgabe08/LottoZiehungMain.java')
| -rw-r--r-- | src/de/fhswf/in/inf/java1/aufgabe08/LottoZiehungMain.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/de/fhswf/in/inf/java1/aufgabe08/LottoZiehungMain.java b/src/de/fhswf/in/inf/java1/aufgabe08/LottoZiehungMain.java new file mode 100644 index 0000000..32cb841 --- /dev/null +++ b/src/de/fhswf/in/inf/java1/aufgabe08/LottoZiehungMain.java @@ -0,0 +1,45 @@ +/** + * + */ +package de.fhswf.in.inf.java1.aufgabe08; + +import java.util.ArrayList; +import java.util.List; + +/** + * Main class for the LottoZiehung. + * + * @author $Author: $ + * @version $Revision: $, $Date: $ UTC + */ +public final class LottoZiehungMain +{ + + /** + * Private constructor for utility class. + * + */ + private LottoZiehungMain() + { + } + + /** + * Main function of the package. + * + * @param args + * Command line arguments. + */ + public static void main(String[] args) + { + 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); + } +} |
