Datentyp korrigiert

This commit is contained in:
Marc Koch 2020-04-09 09:31:31 +02:00
parent af39b64a9a
commit 77f4a7ba2b
1 changed files with 2 additions and 2 deletions

View File

@ -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<Integer> lottozahlenSet = new HashSet<>(6);
HashSet<Integer> lottozahlenSet = new HashSet<>(6);
for (; lottozahlenSet.size() < 6;) {
lottozahlenSet.add((int) (Math.random() * 49) + 1);
}