title: how to pass multiple parameters to a method in java reflections
body: <p>Hi i am using reflections to achieve something.
  I have been given class name, method name of that class and parameter values that needs to be passed to that method in a file(Take any file. Not a constraint).
  I have to call that method with the parameters. This methods do not return anything.
  There is a huge list of methods in this classes and parameter list of each varies.</p>
  
  <p>E.g: <code>method1(String, String, int, boolean)</code>
  <code>method1(String, int, boolean)</code> and likewise i have different permutations and combinations.
  So how can i achieve this.
  I have tried hard coding things with different switch clauses but it is a real overhead and risky thing to maintain.
  Can we dynamically do this thing, like on the fly read the method name and its parameter from the file and call it.
  Any small code snippet will be helpful.
  TIA.</p>