title: Need to pass a Generic Class Type parameter, based on qualified Class name string
body: <p>Only at run-time am I passed the fully qualified Class name (ie "com.firm.me.MyClass")</p>
  
  <p>I need to instantiate a Generic class defined as, say :</p>
  
  <pre><code>Class A &lt;T&gt;
  {
  }
  </code></pre>
  
  <p>Where "T" is the type associated with the passed in fully qualified class name.</p>
  
  <p>I have the following :</p>
  
  <pre><code>Class &lt;?&gt; clazz = Class.forName ("com.firm.me.MyClass");
  </code></pre>
  
  <p>I want (logically speaking) to have something like ..</p>
  
  <pre><code>A &lt;clazz&gt; myInstance = new A &lt;clazz&gt;;
  </code></pre>
  
  <p>The use of "clazz" in the positions above gives rise to following errors :</p>
  
  <p>"clazz cannot be resolved to a type".</p>
  
  <p>How can I do what I want (logically) to do.</p>
  
  <p>Many thanks.</p>