Im having some issues with trying to update a nested for loop to use recursion instead. Is it possible to access the a,b and c variables from the earlier for loops when usin
something like this will work:
public void CreateIndexes(int a, int b, int c, Collection collection) { if(c == 10) {b++; c = 0;} if(b == 20) {a++; b = 0;} if(a == 10) return; int[] indexes = new int[3]{a,b,c} collection.add(indexes); c++; CreateIndexes(a, b, c, collection); }