How do I create new variables based on the size of a List?
Posted
by GK
on Stack Overflow
See other posts from Stack Overflow
or by GK
Published on 2010-05-11T12:26:27Z
Indexed on
2010/05/11
12:34 UTC
Read the original article
Hit count: 113
java
I have a List with say size n, and i have to dynamically create n variables ie i want to dynamically create the variables depending upon the size of the list. How can i achieve this?
Say i have List as List year with n elements in it;
then i have to create the n Integer variables from the above list.
thanks.
© Stack Overflow or respective owner