JAVA || Beats 98%
\n# Code\njava []\nclass Solution {\n    public List<Integer> addToArrayForm(int[] num, int k) {\n        List<Integer> result=new ArrayList<>();\n        int n
\n# Code\n```java []\nclass Solution {\n    public List<Integer> addToArrayForm(int[] num, int k) {\n        List<Integer> result=new ArrayList<>();\n        int n=num.length;\n\n        for(int i=n-1;i>=0;i--){\n            k+=num[i];\n            result.add(k%10); \n            k/=10; \n        }\n        while(k>0){\n            result.add(k%10);\n            k/=10;\n        }\n        Collections.reverse(result);\n        return result;\n    }\n}\n```
['Java']