main
Berat 2024-10-06 00:43:09 +02:00
parent 229575739b
commit de612bdae1
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
package defaultt;
import java.util.Scanner;
public class TUI extends Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(true) {
System.out.println("(1) Einfahren");
System.out.println("(2) Ausfahren");
System.out.println("(3) Bezahlung");
System.out.println("(4) Beenden");
int nutzerEingabe = sc.nextInt();
sc.nextLine();
switch (nutzerEingabe) {
case 1:
Main.einfahrtUI();
break;
case 2:
Main.ausfahrtUI();
break;
case 3:
Main.zahlungUI();
break;
case 4:
return;
}
}
}
}