armies help me out !!
5 java programming of "switch" case !!
class 9 !!
( only for armies and spammers don't ever think to spam otherwise I will report your all answers remember it's my strict instructions to you , so think before to spam over here and armies don't worry I will not do anything to you all )
Answers
Answered by
2
public class SwitchExample {
public static void main(String[] args) {
//Declaring a variable for switch expression
int number=20;
//Switch expression
switch(number){
//Case statements
case 10: System.out.println("10");
break;
case 20: System.out.println("20");
break;
case 30: System.out.println("30");
break;
//Default case statement
default:System.out.println("Not in 10, 20 or 30");
}
}
}
Answered by
2
Answer:
hi dear i'm army
of class 9
.public class SwitchExample {
.public static void main(String[] args) {
.//Declaring a variable for switch expression.
.int number=20;
.//Switch expression.
Explanation:
plz mark me as brainlest and follow plz
Similar questions