forked from stefanxmiami/BankingApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBank.java
More file actions
28 lines (23 loc) · 898 Bytes
/
Copy pathBank.java
File metadata and controls
28 lines (23 loc) · 898 Bytes
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
import java.util.Scanner;
public class Bank implements GUI{
//truth values for looping the menus
public static boolean innerMenuLoop = true;
public static boolean outerMenuLoop = true;
public static void main(String[] args) {
do {
SignUpLogIn signUpLogIn = new SignUpLogIn();
//sign up and log in menu
while(signUpLogIn.signUpLogIn());
do {
//Print the GUI
System.out.println(graphicalUserInterface);
innerMenuLoop = true;
//Select menu
Scanner sc = new Scanner(System.in);
String inputMenu = sc.next();
MenuSelector menuSelector = new MenuSelector();
menuSelector.selectMenu(inputMenu);
} while (innerMenuLoop);
}while (outerMenuLoop);
}
}