Hey guys, Does anyone know a way to do the following in java? int count_5 = 12; Stringtest = 5; count_$test would = 12 in korn shell. Is there a way to do this in Java? Please help. Thanks,
Not a problem. Basically what I want to do is to be able to dynimically identify the variable count_5. I want to accomplish this by using a fixed count_ and apply a variable to that test in this case to identify the int count_5 So, something like this... int count_5 = 12; String test = 5 Now, I want to get 12, but the only way I know that is by using the variable test, such that String count = "count_" int x = count_ + test This should equal the count_5 varible and return a 12. How this makes a little more sense.
Matt, I am not sure which forum this actually belongs in. However, it isn't for the SCJD assignment, so I have to close this thread. Please chose another forum to post this question that will better match your question. Thanks Mark
Post by:autobot
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
a bit of art, as a gift, the permaculture playing cards