|
@ -55,6 +55,30 @@ public class ITsecAufgaben { |
|
|
|
|
|
|
|
|
frage = in.nextInt(); |
|
|
frage = in.nextInt(); |
|
|
|
|
|
|
|
|
|
|
|
// <--- User-input |
|
|
|
|
|
|
|
|
|
|
|
System.out.println("Zeigen Sie nun di2e Lösung mit '0' an & vergleichen Sie Ihre Eingabe:\n"); |
|
|
|
|
|
result = in.nextInt(); |
|
|
|
|
|
|
|
|
|
|
|
if (result == 0) { |
|
|
|
|
|
String res = ""; |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 8; i++) { |
|
|
|
|
|
res += "" + lösung[i][0] + " | " + lösung[i][1] + " | " + lösung[i][2] + "\n"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
System.out.println("\n\n"); |
|
|
|
|
|
|
|
|
|
|
|
res = ""; |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 8; i++) { |
|
|
|
|
|
res += "" + aufgabe[i][0] + " | " + aufgabe[i][1] + " | " + aufgabe[i][2] + "\n"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
System.out.println("Bitte nochmal '0' eingeben, ansonsten 'STRG + Z'"); |
|
|
|
|
|
result = in.nextInt(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
in.close(); |
|
|
in.close(); |
|
|
} |
|
|
} |
|
|