Im triying to make a list which should look like this
Pages = [“Page 1”, “Page 2” … “Page 48”]
and im using this, Is there anything wrong with the following lines?
String[] Pages = {};
int i = 0;
for (; i < 47; i++) {
String p = Integer.toString(i+1);
Pages[i] = ("Page " + p);
}
it keeps giving me a arrayIndexOutOfBoundsException
As I mentioned in my comment,
OR, as Ash mentioned in the comments, do you want a
List<String>instead?