Adding int to string
<p>Im triying to make a list which should look like this
Pages = ["Page 1", "Page 2" ... "Page 48"]</p>

<p>and im using this, Is there anything wrong with the following lines?</p>

<pre><code>String[] Pages = {};
    int i = 0;
    for (; i &lt; 47; i++) {
        String p = Integer.toString(i+1);
        Pages[i] = ("Page " + p);
    }
</code></pre>

<p>it keeps giving me a arrayIndexOutOfBoundsException</p>
