From 1d602b48f0016fda2597973cbc0608f6ff17790f Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Thu, 9 Apr 2020 13:15:20 +0200 Subject: [PATCH] for durch while Schleife ersetzt --- src/gfn/marc/Lottozahlen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfn/marc/Lottozahlen.java b/src/gfn/marc/Lottozahlen.java index 6da52c6..74c2156 100644 --- a/src/gfn/marc/Lottozahlen.java +++ b/src/gfn/marc/Lottozahlen.java @@ -40,7 +40,7 @@ public class Lottozahlen { // Lottozahlen ziehen HashSet lottozahlenSet = new HashSet<>(6); - for (; lottozahlenSet.size() < 6;) { + while (lottozahlenSet.size() < 6) { lottozahlenSet.add((int) (Math.random() * 49) + 1); } ArrayList lottozahlen = new ArrayList<>(lottozahlenSet);