Java Solution
```\nclass Solution {\n    public List addToArrayForm(int[] num, int k) {\n        List list=new ArrayList<>();\n        int i=num.length-1;\n        while(i>=0
```\nclass Solution {\n    public List<Integer> addToArrayForm(int[] num, int k) {\n        List<Integer> list=new ArrayList<>();\n        int i=num.length-1;\n        while(i>=0 || k>0){\n            if(i>=0)\n                k=k+num[i];\n            list.add(k%10);\n            k/=10;\n            i--;\n        }\n        Collections.reverse(list);\n        return list;\n    }\n}
['Java']