JAVA simple solution Array List Beginner friendly
Runtime: 42 ms, faster than 19.81% of Java online submissions for Add to Array-Form of Integer.\nMemory Usage: 40.4 MB, less than 54.92% of Java online submissi
**Runtime: 42 ms, faster than 19.81% of Java online submissions for Add to Array-Form of Integer.\nMemory Usage: 40.4 MB, less than 54.92% of Java online submissions for Add to Array-Form of Integer.**\n\n\n```\nList<Integer> ans=new ArrayList<>();\n        \n        for(int i=num.length-1;i>=0;i--){\n            \n            int n=num[i];\n            int sum=n+k;\n            int rem=sum%10;\n            ans.add(0,rem);\n            k=sum/10;\n            \n        }\n        \n        while(k>0){\n            ans.add(0,k%10);\n            k/=10;\n        }\n        return ans;\n```
['Java']