diff --git a/.gitignore b/.gitignore index b2ac024..0d791ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -Java_2.iml \ No newline at end of file +Java_2.iml +target \ No newline at end of file diff --git a/java2.iml b/java2.iml new file mode 100644 index 0000000..6b49643 --- /dev/null +++ b/java2.iml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0f722c0..d42f9c4 100644 --- a/pom.xml +++ b/pom.xml @@ -8,5 +8,14 @@ java2 1.0-SNAPSHOT + + + org.junit.platform + junit-platform-surefire-provider + 1.1.0 + test + + + \ No newline at end of file diff --git a/src/main/java/de/joethei/hs/java2/praktikum1/GrosseZahl.java b/src/main/java/de/joethei/hs/java2/praktikum1/GrosseZahl.java new file mode 100644 index 0000000..a602fb7 --- /dev/null +++ b/src/main/java/de/joethei/hs/java2/praktikum1/GrosseZahl.java @@ -0,0 +1,97 @@ +package de.joethei.hs.java2.praktikum1; + + +public class GrosseZahl { + int Zahl[]; + + GrosseZahl(String d) { + Boolean korrekteEingabe=true; + for(int i=0; i 9) { + korrekteEingabe = false; + } + } + if(korrekteEingabe) { + Zahl = new int[d.length()]; + for(int w=0; w