Null nicht als getippte Zahl erlauben

This commit is contained in:
Marc Koch 2020-04-09 14:40:20 +02:00
parent 71e127b480
commit f64b76998d
1 changed files with 1 additions and 1 deletions

View File

@ -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])|[1-9])\\s*,?){6}")) {
// Eingabe in ArrayList übertragen
String[] zahlen = eingabe.split("[,]");