So I need to implement a switch statement that is used when given a command. The commands are like "end", or "B". However, one of the commands is setup like "S1" or "S6", the int after referring to a certain thing later in the program. Can I do a switch statement for all the other commands, and also the "S" + int one at the same time? Meaning it will go to that section of the switch statement that starts with "S", regardless of the number afterwards?
switch(command) {
case "B":
....
break;
case "S" + %d (???): // I know this won't work, just trying to convey the idea
....
break;
}