I'm trying to make a 2 dimensional array list that is filled with every possible combination of lets say 1,2,3,4 recursively.
with no double ups.

for example.  

1,0,0  

2,0,0  

3,0,0  

4,0,0  

1,2,0  

1,3,0  

1,4,0  

1,2,3  

etc...

so far I have 

```
//this gives me all my numbers
for(int i =0;i<arraySize;i++)
index[i] = i;

// and is the part that make the combinations
for(int i = 0;i<arraySize;i++){
   for(int x = 0;x<k;x++)
      combinations.get(i).set(x, index[i]);

```

EDIT:
Also I'm not trying to print the result I want to store the result in a 2 dimensional array