LeetCode Solutions/Array and String/Move Zeroes/Move Zeroes.java
<filename>LeetCode Solutions/Array and String/Move Zeroes/Move Zeroes.javaclass Solution {
    public void moveZeroes(int[] nums) {
        int i = 0;
        for (int j=0; j<nums.length; j++){
            if (nums[j] != 0){
                nums[i] = nums[j];
                if (j != i){
                    nums[j] = 0;
                }
                i++;
            }
        }
    }
}