There’s more than one prints but for different conditions, is this correct?
Looks like you forgot a
break. Make sure at the end of each of your cases, before the next one, you have
break. This keeps the code from going to the next case and tells the switch that you’re done.