diff --git a/src/gfn/marc/Lottozahlen.java b/src/gfn/marc/Lottozahlen.java index 74c2156..3366735 100644 --- a/src/gfn/marc/Lottozahlen.java +++ b/src/gfn/marc/Lottozahlen.java @@ -12,7 +12,7 @@ public class Lottozahlen { // Lottoschein ausfüllen HashSet lottoschein = new HashSet<>(6); while (!eingabeKorrekt) { - System.out.println("Bitte geben Sie sechs, mit Kommata getrennte, Lottozahlen (1 - 49) ein. " + + System.out.println("Bitte geben Sie sechs, durch Kommata getrennte, Lottozahlen (1 - 49) ein. " + "(Beispiel: \"6,12,29,34,40,46\")"); String eingabe = scanner.nextLine(); @@ -25,14 +25,14 @@ public class Lottozahlen { lottoschein.add(Integer.parseInt(zahl.trim())); } - // Prüfung: Doppelte Zahlen? + // Prüfung: doppelte Zahlen? if (lottoschein.size() == 6) { eingabeKorrekt = true; } else { System.err.println("Doppelte Zahlen!"); } - // Zahlen ungültig? + // Prüfung: Zahlen ungültig? } else { System.err.println("Ungültige Zahlen!"); }