added error message if you choose pay without any ticket chosen
This commit is contained in:
@@ -57,6 +57,11 @@ class Fahrkartenautomat
|
||||
}
|
||||
|
||||
public static double fahrkartenBezahlen(double zuZahlenderBetrag) {
|
||||
if (zuZahlenderBetrag == 0) {
|
||||
System.out.println("Nichts zu Bezahlen");
|
||||
fahrkartenbestellungErfassen();
|
||||
}
|
||||
|
||||
Scanner tastatur = new Scanner(System.in);
|
||||
// Geldeinwurf
|
||||
// -----------
|
||||
|
||||
Reference in New Issue
Block a user