diff --git a/src/gfn/marc/Lottozahlen.java b/src/gfn/marc/Lottozahlen.java index fd1b310..8d82da8 100644 --- a/src/gfn/marc/Lottozahlen.java +++ b/src/gfn/marc/Lottozahlen.java @@ -23,7 +23,7 @@ public class Lottozahlen { lottoschein.add(Integer.parseInt(zahl)); } - // Prüfung: Doppelte zahlen? + // Prüfung: Doppelte Zahlen? if (lottoschein.size() == 6) { eingabeKorrekt = true; } else { @@ -36,7 +36,7 @@ public class Lottozahlen { } // Lottozahlen ziehen - Collection lottozahlenSet = new HashSet<>(6); + HashSet lottozahlenSet = new HashSet<>(6); for (; lottozahlenSet.size() < 6;) { lottozahlenSet.add((int) (Math.random() * 49) + 1); }