If i understood you correctly you wish to see an example of a switch being implemented in if-else methods.
If you're trying to decide which is better, know that in practice, they function almost...
Type: Posts; User: Stum
If i understood you correctly you wish to see an example of a switch being implemented in if-else methods.
If you're trying to decide which is better, know that in practice, they function almost...
Cornix is right.
You excluded the userInput from being assigned to storeNumber by not placing it within the For loop
for(int i = 0; i < 10; i++) {
userInput =...