Datentyp korrigiert
This commit is contained in:
parent
af39b64a9a
commit
77f4a7ba2b
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue