-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSwitch.java
More file actions
26 lines (25 loc) · 748 Bytes
/
Switch.java
File metadata and controls
26 lines (25 loc) · 748 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
public class Switch {
public static void main(String[] args) {
for (int i = 0; i < 15; i++) {
switch (i) {
case 0:
System.out.println("chinonso");
break;
case 1:
System.out.println("chinyeaka");
break;
case 2:
System.out.println("victor");
break;
case 3:
System.out.println("devops");
break;
case 4:
System.out.println("java");
break;
default:
System.out.println("default");
}
}
}
}