Yes a switch statement can be used inside a loop . To give an example of this, suppose you have the following Java code with an if ladder inside a do… while loop which iterates while the variable num is less than eight: do {
Yes a switch statement can be used inside a loop . To give an example of this, suppose you have the following Java code with an if ladder inside a do… while loop which iterates while the variable num is less than eight: do {