From 77bde510679581b31bf66f6ffc142468b1664671 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Wed, 26 Nov 2014 14:57:09 +0100 Subject: Assignment No.8 after correction --- src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/de/fhswf/in/inf/java1/aufgabe8/LottoZiehungMain.java') 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 l = new ArrayList(); + 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 ziehung = spiel.getLastDraw(); - Integer sonderzahl = spiel.getSuperzahl(); - System.out.println(ziehung + " SonderZahl: " + sonderzahl); } } -- cgit v1.2.3-70-g09d2