From 84ae98a143d5bb3951dfa9d3238d5138a30a0a92 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Thu, 9 Apr 2020 11:40:44 +0200 Subject: [PATCH] =?UTF-8?q?regex=20verk=C3=BCrzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 a99f276..6da52c6 100644 --- a/src/gfn/marc/Lottozahlen.java +++ b/src/gfn/marc/Lottozahlen.java @@ -17,7 +17,7 @@ public class Lottozahlen { String eingabe = scanner.nextLine(); // Eingabe überprüfen - if (eingabe.matches("(\\s*(([1-4][0-9])|([0-9]))\\s*,?){6}")) { + if (eingabe.matches("(\\s*(([1-4][0-9])|[0-9])\\s*,?){6}")) { // Eingabe in ArrayList übertragen String[] zahlen = eingabe.split("[,]");