write a program in Java to input a number and print it in the word form using switch case. please tell me fast.
Answers
Answered by
0
Answer:
The Java switch expression must be of byte, short, int, long (with its Wrapper type), enums and string. Each case statement can have a break statement which is optional.
...
Syntax:
switch(expression){
case value1:
//code to be executed;
break; //optional.
case value2:
//code to be executed;
break; //optional.
Similar questions