```
public class Solution {
public void moveZeroes(int[] nums) {
if(nums == null || nums.length < 1) return;
int count = 0;
int numslength = nums.length;
for(int i=0; i<numslength; i++) {
if(nums[i] != 0) {
nums[count] = nums[i];
count++;
}
}
int numofzeros = numslength - count;
for(int i=0; i<numofzeros; i++) nums[count + i] = 0;
}
```

}