cleaned indentation

This commit is contained in:
Joel
2021-01-03 19:06:00 +01:00
parent 7fd804eb35
commit ba1d33adba
+3 -3
View File
@@ -36,7 +36,7 @@ class Fahrkartenautomat
System.out.printf(" Bezahlen (%d)\n", i+1); System.out.printf(" Bezahlen (%d)\n", i+1);
System.out.print("Ihre Wahl: "); System.out.print("Ihre Wahl: ");
try { try {
auswahlTicket = tastatur.nextByte(); auswahlTicket = tastatur.nextByte();
} }
catch(InputMismatchException e) { catch(InputMismatchException e) {
auswahlTicket = 0; auswahlTicket = 0;
@@ -53,7 +53,7 @@ class Fahrkartenautomat
while (true) { while (true) {
System.out.print("Anzahl der Tickets: "); System.out.print("Anzahl der Tickets: ");
try { try {
anzahlTickets = tastatur.nextByte(); anzahlTickets = tastatur.nextByte();
} }
catch(InputMismatchException e) { catch(InputMismatchException e) {
anzahlTickets = 0; anzahlTickets = 0;
@@ -91,7 +91,7 @@ class Fahrkartenautomat
while (true) { while (true) {
System.out.print("Eingabe (mind. 5Ct, höchstens 2 Euro): "); System.out.print("Eingabe (mind. 5Ct, höchstens 2 Euro): ");
try { try {
eingeworfeneMuenze = tastatur.nextDouble(); eingeworfeneMuenze = tastatur.nextDouble();
} }
catch(InputMismatchException e) { catch(InputMismatchException e) {
eingeworfeneMuenze = 0; eingeworfeneMuenze = 0;