-
Notifications
You must be signed in to change notification settings - Fork 0
/
Runner
85 lines (76 loc) · 2.2 KB
/
Runner
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import java.util.Scanner;
public class Runner {
public static void main(String[] args) {
System.out.println("------(PROGRAMM START)-----");
System.out.println("---------------------------");
System.out.println("AUTOHAUS KANINCHENFURZ GmbH");
System.out.println("---------------------------");
menue();
}
public static void ende() {
System.out.println("---------------------------");
System.out.println("EINEN SCHOENEN TAG WUNSCHT ");
System.out.println("IHNEN DAS TEAM VON ");
System.out.println("AUTOHAUS KANINCHENFURZ GmbH");
System.out.println("---------------------------");
System.out.println("------(PROGRAMM ENDE)------");
System.exit(0);
}
public static void menue() {
System.out.println();
System.out.println("-->[ZU DEN TECHNISCHEN DATEN VON...]<--");
System.out.println("0 = [BMW X5]");
System.out.println("1 = [BMW X6]");
System.out.println("2 = [MERCEDES BENZ C63]");
System.out.println("3 = [MERCEDES BENZ S500]");
System.out.println("4 = [SUBARU IMPREZA WRX STI]");
System.out.println("5 = [MITSHUBISHI LANCER EVOLUTION III]");
System.out.println("6 = [MITSHUBISHI OUTLANDER]");
System.out.println("7 = [MITSHUBISHI PAJERO]");
System.out.println("8 = [TOYOTA SUPRA]");
System.out.println();
Scanner eingabe = new Scanner(System.in);
byte autoAuswahl = eingabe.nextByte();
switch(autoAuswahl){
case 0:
BMW verbinden = new BMW();
verbinden.bmwx5();
break;
case 1:
BMW verbunden = new BMW();
verbunden.bmwX6();
break;
case 2:
DAIMLER sollVerbinden = new DAIMLER();
sollVerbinden.c63();
break;
case 3:
DAIMLER sollVerbunden = new DAIMLER();
sollVerbunden.s500();
break;
case 4:
SUBARU raser = new SUBARU();
raser.imprezawrxsti();
break;
case 5:
MITSHUBISHI legende = new MITSHUBISHI();
legende.evo3();
break;
case 6:
MITSHUBISHI legendere = new MITSHUBISHI();
legendere.outlander();
break;
case 7:
MITSHUBISHI legenderste = new MITSHUBISHI();
legenderste.pajero();
break;
case 8:
TOYOTA supers = new TOYOTA();
supers.supra();
default:
System.out.println("[FALSCHE EINGABE]");
menue();
eingabe.close();
}
}
}