In my code, the program does something depending on the text entered by the user. My code looks like:
switch (name) { case text1: { //bla
The case values are just codeless "goto" points that can share the same entry point:
case text1: case text4: { //Do something break; }
Note that the braces are redundant.