Very Easy Java Solution 100% (Fully Explained and Understandable)
\nclass Solution {\n\n    public int[] plusOne(int[] digits) {\n        \n        //To solve this, we take digits one by one from end to start..\n        for (i
```\nclass Solution {\n\n    public int[] plusOne(int[] digits) {\n        \n        //To solve this, we take digits one by one from end to start..\n        for (int i = digits.length - 1; i >= 0; i--) {\n            \n            // If a digit is not equal to 9, we plus one directly and then quit the loop...\n            if (digits[i] != 9) {\n                digits[i]++;\n                break;\n                \n            //if the digit is 9, we set it to 0, and continue the loop until\n            //we encounter the number don\'t equals to 9...\n            } else {\n                digits[i] = 0;\n            }\n        }\n        if (digits[0] == 0) {      //it means, we need a bigger array to represent the number.\n            int[] res = new int[digits.length + 1];    //so we create a new array res...\n            res[0] = 1;                                //and set res[0] to 1...\n            return res;\n        }\n        return digits;      //return the digits...\n    }\n}\n```
['Java']