I have multiple inputs from a user based on that I wrote some methods to perform some operations.
To handle user input I have to use if else if or switch case. Looking for more feasible solutions rather than using multiple if-else or switch cases.
Input samples include radio buttons, checkboxes, dropdowns. So I have already written some methods to perform some operations.
Instead of that is there any feasible solution.