JAVA 100% faster - In Place Solution
\nclass Solution {\n    public int[] sortArrayByParity(int[] nums) {\n        int j =0;\n        for (int i = 0; i < nums.length; i++) {\n            if(nums[i]
```\nclass Solution {\n    public int[] sortArrayByParity(int[] nums) {\n        int j =0;\n        for (int i = 0; i < nums.length; i++) {\n            if(nums[i]%2==0) {\n                int t = nums[i];\n                nums[i] = nums[j];\n                nums[j] = t;\n                j++;\n            }\n        }\n        return nums;\n    }\n}\n```
['Java']