Simple Java | Two loops | Easy to understand
Given Condion : row1i <= x <= row2i and col1i <= y <= col2i.\n1. So run to loops, one for row and one for column.\n\n\nclass Solution {\n    public int[][] rang
1. Given Condion : row1i <= x <= row2i and col1i <= y <= col2i.\n1. So run to loops, one for row and one for column.\n\n```\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] queries) {   \n        \n        int[][] answer = new int[n][n];\n        \n        for (int[] A : queries) {\n\t\t\n            int row1 = A[0], row2 = A[2];\n\t\t\tint col1 = A[1], col2 = A[3];\n            \n            for (int row = row1; row <= row2; row++) {\n                for (int col = col1; col <= col2; col++) {\n                    answer[row][col] += 1;\n                }\n            }\n        }\n        return answer;\n    }\n}\n```\n```
['Java']