diff options
Diffstat (limited to 'src/de/fhswf/in/inf/java1/aufgabe08/Lottery6OutOf49.java')
| -rw-r--r-- | src/de/fhswf/in/inf/java1/aufgabe08/Lottery6OutOf49.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/de/fhswf/in/inf/java1/aufgabe08/Lottery6OutOf49.java b/src/de/fhswf/in/inf/java1/aufgabe08/Lottery6OutOf49.java index b7c43f1..6358561 100644 --- a/src/de/fhswf/in/inf/java1/aufgabe08/Lottery6OutOf49.java +++ b/src/de/fhswf/in/inf/java1/aufgabe08/Lottery6OutOf49.java @@ -42,9 +42,10 @@ public class Lottery6OutOf49 * Does the next draw. * */ - public void nextDraw() + public final void nextDraw() { - lastDraw = FloydAndBentley.sample(lotteryNumbers, 7); + final int countDraws = 7; + lastDraw = FloydAndBentley.sample(lotteryNumbers, countDraws); superzahl = lastDraw.remove(lastDraw.size() - 1); lastDraw.sort(null); @@ -55,7 +56,7 @@ public class Lottery6OutOf49 * * @return Returns an immutable list of the last draw. */ - public List<Integer> getLastDraw() + public final List<Integer> getLastDraw() { if (lastDraw == null) { @@ -69,7 +70,7 @@ public class Lottery6OutOf49 * * @return The super number of the last draw. */ - public Integer getSuperzahl() + public final Integer getSuperzahl() { if (superzahl == null) { |
