dynamic variable name in JAVA
I am looking for a way to create variable name during run-time in JAVA similar to what perl does with $$xx.
In perl you would do,
$a,$b,$c = split("-", "I-want-to");
so in this case $$a <==> $I
$$b <==> $want etc.
Is there a similar way to do that in JAVA?
|