How to call multiple variable of string with numbering in loop?
<p>What i am trying to achieve is, let's say I've these variables below:</p>

<pre><code>String num1 = "blah1";
String num2 = "blah2";
String num3 = "blah3";
String num4 = "blah4";
String num5 = "blah5";
</code></pre>

<p>Now i want to create a single string variable which would iterate the all values of string's variable inside loop.</p>

<pre><code>for(int i=0; i&lt;=5; i++){
   System.out.println(num+""+i); //I know, this would give me some errors. But i want to make something like this to call all string variables.
}
</code></pre>

<p>Here i want to print all the values of string's variable by using loop, How to achieve this?</p>

<p>Help would be appreciated!</p>