[Java] Easy 100% solution
java\nclass Solution {\n    public int[] separateDigits(final int[] nums) {\n        int size = 0;\n\n        for(int i = 0; i < nums.length; ++i) {\n          
```java\nclass Solution {\n    public int[] separateDigits(final int[] nums) {\n        int size = 0;\n\n        for(int i = 0; i < nums.length; ++i) {\n            int reverse = 1;\n\n            while(nums[i] > 0) {\n                reverse *= 10;\n                reverse += nums[i] % 10;\n                nums[i] /= 10;\n                size++;\n            }\n\n            nums[i] = reverse;\n        }\n\n        final int[] result = new int[size];\n        int i = 0;\n\n        for(int num : nums) {\n            while(num > 1) {\n                result[i++] = num % 10;\n                num /= 10;\n            }\n        }\n\n        return result;\n    }\n}\n```
['Java']