Question: So I hoped to figure out the code that would finish this:

```
public List<List<Integer>> create4(List<Integer> dice) {
   //unknown code

        return listOf4s;
    }

```

So dice would always be a List of 5 Integers,

from the 5 Integers I would like to create a List every possible permutation using only 4 numbers.

I hope I have made this clear enough.

I have searched around but have not quite seen anything I could use. Any help would be great!

Answer: 
I tend to like shorter code ;)

```
public List<List<Integer>> create4(List<Integer> dice) {
    List<List<Integer>> listOf4s = new ArrayList<List<Integer>>();
    for(Integer num : dice) {
        List<Integer> dice2 = new ArrayList<Integer>(dice);
        dices2.remove(num);
        listOf4s.add(dices2);
    }
    return listOf4s;
}

```
This is what I did using @btreat 's idea and it worked great.

```
public List<List<Integer>> create4(List<Integer> dice) {
        List<List<Integer>> permutations = new ArrayList<List<Integer>>();
        for(int i = 0; i < dice.size(); i++) {
            List<Integer> includedPermutation = new ArrayList<Integer>();
            for(int j = 0; j < dice.size(); j++) {
                if(i!=j) {
                    includedPermutation.add(dice.get(j));
                }
            }
            permutations.add(includedPermutation);
        }

        return permutations;
    }

```