title: How to define a java object name with a variable?
body: <p>I need to create a large number of objects using a pattern of naming easily obtainable through a loop. Is there any way to have an object name be read from a variable, like this?</p>
  
  <pre><code>String Var = "ObjectName";
  ClassName Var = new ClassName();
  </code></pre>
  
  <p>I don't need the object to be assigned a variable name, merely to obtain the name from it at the time of assignment.</p>