-
Notifications
You must be signed in to change notification settings - Fork 41
/
service.java
50 lines (49 loc) · 1.04 KB
/
service.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import java.io.*;
class service
{
public void menu()throws Exception
{
while(true)
{
System.out.println("Enter 1 to Create New Account.");
System.out.println("Enter 2 for Deposit.");
System.out.println("Enter 3 for Withdrawl.");
System.out.println("Enter 4 for MiniStatement");
System.out.println("Enter 5 for Balance Enquiry.");
System.out.println("Enter 6 for Changing Password.");
System.out.println("Enter 7 for Account Details.");
System.out.println("Enter 8 to Exit.");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter your Choice.");
int choice=Integer.parseInt(br.readLine());
UserAccount uc=new UserAccount();
Transaction t=new Transaction();
switch(choice)
{
case 1:
uc.createAccount();
break;
case 2:
t.deposit();
break;
case 3:
t.withdrawal();
break;
case 4:
t.ministatement();
break;
case 5:
t.balcheck();
break;
case 6:
uc.changepass();
break;
case 7:
uc.AccDetails();
break;
case 8:
System.exit(0);
}
}
}
}