hi, i think you need to use the java.lang.reflect api for this kind of stuff.
greetz Hans At 02:24 AM 4/2/2003 -0800, you wrote:
i will pay $2 usd if you can solve my problem. i'll send check by mail or paypal.
my problem is i have a String variable s which stores the name of the instance i want to create. how do i convert that variable to java code so that i can use it in my java code.
for instance
this is what i want to do
blue.use(); red.use();
but have somethign like s = "blue"; something(s).use(); s = "red"; something(s).use();
which does the samething as above
mike
_________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
