I'm new to Java, so my questions may seem easy. But I need some direction from your guys.
Here is my question: I have a class with many methods, I would like to give these methods to the user in combox for selection, based on their selection some code will be launched. Now I can do this by writing a switch selection method. Where based on the selection I use the switch to start a specific method.
But my list of functions is quite long, about 200, so my questions to you are: is there a more reasonable way to do this. Just lead me in the right direction and I will try to do the rest.
source share