cleaned indentation
This commit is contained in:
@@ -36,7 +36,7 @@ class Fahrkartenautomat
|
||||
System.out.printf(" Bezahlen (%d)\n", i+1);
|
||||
System.out.print("Ihre Wahl: ");
|
||||
try {
|
||||
auswahlTicket = tastatur.nextByte();
|
||||
auswahlTicket = tastatur.nextByte();
|
||||
}
|
||||
catch(InputMismatchException e) {
|
||||
auswahlTicket = 0;
|
||||
@@ -53,7 +53,7 @@ class Fahrkartenautomat
|
||||
while (true) {
|
||||
System.out.print("Anzahl der Tickets: ");
|
||||
try {
|
||||
anzahlTickets = tastatur.nextByte();
|
||||
anzahlTickets = tastatur.nextByte();
|
||||
}
|
||||
catch(InputMismatchException e) {
|
||||
anzahlTickets = 0;
|
||||
@@ -91,7 +91,7 @@ class Fahrkartenautomat
|
||||
while (true) {
|
||||
System.out.print("Eingabe (mind. 5Ct, höchstens 2 Euro): ");
|
||||
try {
|
||||
eingeworfeneMuenze = tastatur.nextDouble();
|
||||
eingeworfeneMuenze = tastatur.nextDouble();
|
||||
}
|
||||
catch(InputMismatchException e) {
|
||||
eingeworfeneMuenze = 0;
|
||||
|
||||
Reference in New Issue
Block a user