Variable declaration with its name containing value from loop
<p>i am php developer just started at java i want to declare dynamic variables inside a loop and for that i have to append the loop value to varaible name this is what i want . </p>

<pre><code>I would like to make  statement like this 

for (i=1; i&lt;6; i++)
{
String new_variable_ + i;
}
</code></pre>

<p>the above code does not work in java how to do it ? </p>
