forked from maheshashokit/27_Java_Full_Stack_Repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSwitchDemo.java
More file actions
37 lines (27 loc) · 1.04 KB
/
SwitchDemo.java
File metadata and controls
37 lines (27 loc) · 1.04 KB
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
class SwitchDemo
{
public static void main(String[] args)
{
System.out.println("1. With Draw Amount");
System.out.println("2. Depoist Amount");
System.out.println("3. Mini Statement");
System.out.println("4. Mobile Registration");
System.out.println("5. Quick Transfer");
int userChoice = 3; //later we can read this from keyboard dynamically
//writing the switch statement
switch(userChoice){
case 1 : System.out.println("With Draw Business logic Executed!!!!");
break;
case 2 : System.out.println("Depoist Business logic Executed!!!!");
break;
case 3 : System.out.println("Mini Statement Business logic Executed!!!!");
break;
case 4 : System.out.println("Mobile Registration Business logic Executed!!!!");
break;
case 5 : System.out.println("Quick Transfer Business logic Executed!!!!");
break;
default : System.out.println("User Choice Not Matched Given Options!!!!");
break;
}
}
}