How do I create new variables based on the size of a List?
<p>I have a <code>List</code> with say size <em>n</em>, and I have to dynamically create <code>n</code> variables ie i want to dynamically create the variables depending upon the size of the list. How can i achieve this?</p>

<p>Say i have <code>List</code> as <code>List&lt;Integer&gt; year</code> with <em>n</em> elements in it;</p>

<p>then i have to create the <em>n</em> <code>Integer</code> variables from the above list.</p>

<p>EDIT : If i have list with 3 elements in it the i want to create 3 variables like</p>

<pre><code>a = list(0);
b = list(1);
c = list(2);
</code></pre>

<p>like this the list may have any number of elements then i have to create those many variables. Hope I am clear now.</p>

<p>thanks.</p>
