How do I make arrays dynamically with unique names without using a 2d array?

Viewed 24

I'm doing a challenge in which I'm forced to make new arrays to represent a random amount of rows. Part of the challenge forces the use of arrays and bans the use of a 2d array. Any help is appreciated.

Essentially it should look like this:

for (int i = 0; i < randomNumber; i++) {
  String[] array + i = new String[10];
}
0 Answers
Related