In java, is there anyway to instanciate an object and name it a word stored in a String variable? like if i had:
String thing=test;
random test=new random();
thing=something
would there be anyway to create another instance of class random without having to maually type it in? in otherwords, is there any way to name the object using the string's name (thing) and not the actual value stored in it. Basically i want it to say something like this:
String thing=everything;
random thing=new random();
but to have the object named everything, not thing. Can anyone help me?
2006-11-19
13:52:35
·
3 answers
·
asked by
random_guy7531
4
in
Computers & Internet
➔ Programming & Design