title: Instantiate parameterized type using Class.forName
body: <p>I have the following classes:</p>
  
  <pre><code>public class B {
  }
  
  public class A&lt;B&gt; {
  }
  </code></pre>
  
  <p>How do I instantiate class <code>A</code> using <code>Class.forName</code>, given that I have two string variables: </p>
  
  <pre><code>String classNameA = "A";
  String classNameB = "B";
  </code></pre>