title: How to use an instance of Class as a generic type?
body: <p>I would like to do something like this in java 8:</p>
  
  <pre><code>public void example(Class clazz) {
      MyClass&lt;clazz&gt; myObj = new MyClass&lt;clazz&gt;();
  }
  </code></pre>
  
  <p>But I'm getting "cannot find symbol: symbol class clazz location: "</p>
  
  <p>Is this possible? Thanks!</p>