diff options
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); + } +} |
