How to set an object variable dynamically via a method in Java
<p>I am attempting to run a method that takes in an string and creates the object using the string as the object's variable:</p>

<pre><code>public void createObj(String objName){
    Obj objName = new Obj();
}
</code></pre>

<p>Is this even possible? If so, how may I accomplish it?</p>
