EASY JAVA SOLUTION || SELF EXPLANATORY || O(n)
\n# Code\n\nclass Solution {\n    public int[] separateDigits(int[] nums) {\n        StringBuilder sb = new StringBuilder();\n        for(int x: nums) sb.append
\n# Code\n```\nclass Solution {\n    public int[] separateDigits(int[] nums) {\n        StringBuilder sb = new StringBuilder();\n        for(int x: nums) sb.append(x);\n        String str = sb.toString();\n        int[] res = new int[str.length()];\n        for(int i=0;i<res.length;i++){\n            res[i] = str.charAt(i)-\'0\';\n        }\n        return res;\n    }\n}\n```
['Java']