```
public void moveZeroes(int[] nums) {
ArrayList<Integer> zeros = (ArrayList<Integer>) IntStream.of(nums).boxed().filter(u -> u == 0 ).collect(Collectors.toList());
ArrayList<Integer> nozeros = (ArrayList<Integer>) IntStream.of(nums).boxed().filter(u -> u != 0 ).collect(Collectors.toList());
nozeros.addAll(zeros);
nums = nozeros.stream().mapToInt(u -> u ).toArray();
}
```