Hey is there a way to create multiple variables in a for loop? Here is an example of what i "want" my code to look like
for(int i=0; i<10; i++) {
int[] arr(i) = new int[i+1];
for(int j=0; j<=i; j++) {
arr(i)[j] = j+1;
} //for
} //for
I want to create 10 arrays like this:
arr0: [1]
arr1: [1, 2]
arr2: [1, 2, 3]
arr3: etc
...
int [][]in order to handle 2 dimensional arrays, or just use aListofList.array1array2, by hand with numbers at the end, chances are you don't actually need to do it by hand.