Rewrite the following switch statements using if-else statements.
int x = 3;
int y = 3;
switch (x+3){
case 3: y = 0; break;
case 6: y = 1;
default: y += 1;
}
System.out.println(y);
can someone help explain how to do this?
Answers
Answered by
0
Sorry I didn’t answer
Because I didn’t know
Please make me a brainlest
Because I didn’t know
Please make me a brainlest
Similar questions