title: Java use object's class to create a generic type is this possible?
body: <p>Say I want to do..</p>
  
  <pre><code>public class Foo{
  
    public Foo(Object c){
        Bar&lt;c&gt; bar = new Bar();
    }
  }
  
  
  public class Bar&lt;Type&gt;{
  ......
  }
  </code></pre>
  
  <p>Is something along the lines of this possible?</p>
  
  <p>Ultimately I want to dynamically give Bar a type based off the data type passed in from "Object C". This is going to be parsed by another class.</p>