Something like
x[i] = y;
Type: Posts; User: Parranoia
Something like
x[i] = y;
In your nextPermutation() method, you are never adding the values from the for loop to your int array. So you are just creating a new array and passing on that empty array, which would contain all 0s