mb2297
asked on
Java object reference from string
In some languages you can use a string as an object reference.
For example, in ActionScript:
var foo = "bar";
_global[foo] = "baz";
Is the same as saying
_global.bar = "baz";
Is this possible in Java, and if so what's the syntax?
Thanks,
Matt.
For example, in ActionScript:
var foo = "bar";
_global[foo] = "baz";
Is the same as saying
_global.bar = "baz";
Is this possible in Java, and if so what's the syntax?
Thanks,
Matt.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER