Are you saying that you want the variable's
value or the variable's
label to be the same as the data in the array element? If you want the value, you could construct one of the
Java collections, add each array element to the collection either directly or in the constructor, then use one of the collection methods to check for existence of the record. If you want to rename the variable, I don't think you can do that...
Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4 all those years ago...)