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
It's not at all clear what you want. If you want to look up objects by name, you could use a Map
Example:
Map map = new HashMap(); String objectName = ...// get name of object Object object = ...// get object map.put(objectName, object);
Then it can be retrieved:
Object obj = map.get(objectName);