Null nicht als getippte Zahl erlauben
This commit is contained in:
parent
71e127b480
commit
f64b76998d
|
|
@ -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("[,]");
|
||||
|
|
|
|||
Loading…
Reference in New Issue