Java Solution
Code\n\nclass Solution {\n    public int[] separateDigits(int[] nums) {\n        \n        ArrayList<Integer> ans = new ArrayList<>();\n        for(int i=0;i<nu
# Code\n```\nclass Solution {\n    public int[] separateDigits(int[] nums) {\n        \n        ArrayList<Integer> ans = new ArrayList<>();\n        for(int i=0;i<nums.length;i++){\n            ArrayList<Integer> al = new ArrayList<>();\n            while(nums[i]>0){\n                int rem = nums[i]%10;\n                nums[i]/=10;\n                al.add(rem);\n                \n            }\n            Collections.reverse(al);\n            for(int j:al){\n                ans.add(j);\n            }\n            \n        }\n        int arr[]=new int[ans.size()];\n        for(int i=0;i<ans.size();i++){\n            arr[i]=ans.get(i);\n        }\n        return arr;\n    }\n}\n```
['Java']