title: How to call a method in another class when the given classname is string
body: <p>I have two classes in java. I am calling a method of 2nd class from 1st class when the 2nd class name is stored in a string variable.
  I tried the below code.It creates the class.</p>
  
  <pre><code>String adapterClass = "com.appzillon.server.impl.ViewAccDtlsAdapterImpl";
  Class className = Class.forName(adapterClass);
  </code></pre>
  
  <p>After that how to call the method.Method name is <code>getInfo</code> with a string type paramater.</p>