-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
36 lines (27 loc) · 865 Bytes
/
Main.java
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
package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println("WELCOME TO BLUE SKY BANK");
System.out.println("==========================\n");
BankApp efosaojomo = new BankApp();
efosaojomo.info();
while (1 < 2){
int i = 1;
int choice = 0;
do {
efosaojomo.task();
}while (i < 2);
i++;
System.out.println("To perform another operation\n Press 1 to Continue\n Press any key to exit\n:");
Scanner sc = new Scanner(System.in);
if (choice == 1){
efosaojomo.task();
}else if(choice != 1){
System.out.println("Wrong Input, Try Again!!!");
}else {
System.exit(0);
}
}
}
}