-
Notifications
You must be signed in to change notification settings - Fork 0
/
nested.java
29 lines (26 loc) · 974 Bytes
/
nested.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
public class nested {
public static void main(String[] args) {
int weakday = 1;
switch(weakday){
case 1: System.out.println("sunday");
int x= 1;
switch (x) {
case 1:System.out.println("Nested Switch");
break;
default: System.out.println("no case met in case ");
break;
}
case 2: System.out.println("Monday");
break;
case 3: System.out.println("Tuesday");
break;
case 4: System.out.println("Wednesday");
break;
case 5: System.out.println("Thursday");
break;
case 6: System.out.println("Friday");
break;
default: System.out.println("saturday");
}
}
}