NachgereichterCode/ParkhausUI.Java hinzugefügt
parent
9963b79693
commit
a9c6685e81
|
@ -0,0 +1,42 @@
|
|||
import java.text.ParseException;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class ParkhausUI {
|
||||
|
||||
public static void main(String[] args) throws ParseException {
|
||||
|
||||
while (true) {
|
||||
System.out.println("1. Einfahrt ins Parkhaus");
|
||||
System.out.println("2. Zahlung der Parkgebühren");
|
||||
System.out.println("3. Ausfahrt");
|
||||
System.out.println("4. Parkhaus Verwaltung");
|
||||
System.out.println("5. Verlassen");
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
int auswahl = scanner.nextInt();
|
||||
scanner.nextLine();
|
||||
|
||||
switch (auswahl) {
|
||||
|
||||
case 1:
|
||||
ParkhausLogik.einfahrtParkhaus();
|
||||
break;
|
||||
|
||||
case 2:
|
||||
ParkhausLogik.Zahlung();
|
||||
break;
|
||||
|
||||
case 3:
|
||||
ParkhausLogik.ausfahrtParkhaus();
|
||||
break;
|
||||
|
||||
case 4:
|
||||
ParkhausLogik.ParkhausVerwaltung(null);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue