Hey there,
I'm stuck in a rut at the moment trying to figure something out. I have a class, that has 4 methods. method1(), method2(), method3() and whatMethod()...
whatMethod() accepts a String and then decides what method to execute based on the received String. Say the String that was sent to whatMethod() was "method2", then whatMethod() will execute method2()...
How would you go about doing this? I've been sitting here trying to figure out how but I seem to be a bit slow today...
Thank in advance!