30 lines
838 B
Java
30 lines
838 B
Java
public class userinterface {
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
|
while (true) {
|
|
|
|
System.out.println("Willkommen!\nWähle aus diesen Modulen: Konto anlegen, Konto zeigen, Eingabe Session, Ziel Monat, Programm beenden");
|
|
String [] antwort = User.sc.nextLine().split(" ");
|
|
|
|
if (antwort[1].equalsIgnoreCase("anlegen")){
|
|
User.kontoanlegen();
|
|
System.out.println();
|
|
} else if (antwort[1].equalsIgnoreCase("zeigen")) {
|
|
User.zeigeKonto();
|
|
System.out.println();
|
|
} else if (antwort[0].equalsIgnoreCase("Eingabe")) {
|
|
User.eingabeSession();
|
|
System.out.println();
|
|
} else if (antwort[0].equalsIgnoreCase("Ziel")) {
|
|
User.speichereStrecke(0);
|
|
} else if (antwort[1].equalsIgnoreCase("beenden")) {
|
|
System.out.println("Bis zum nächsten Mal!");
|
|
break;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|