0

I want to be able to call myMethod() by using Function. in my code i have a long list of available functions and would like the user to pick one without an if then system. any help?

 public static void main(String[] args) {
    String Function = "myMethod";
    Function();
    }
shmosel
  • 49,289
  • 6
  • 73
  • 138
Nimrod Rappaport
  • 134
  • 1
  • 1
  • 12

0 Answers0