Re: forloops inside of switch statements

You clearly can't do it the way you have shown. But you could create an interface and create multiple instances and store them in a list.
Then you can use the user input to select the appropriate instance from the list and invoke its method(s). But if the method contents are all different, as the case statement might be, then you still have to type them in.