My accepted Java Solution
\n\n# Code\n\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] queries) {\n            int[][] mat = new int[n][n];\n        for (int[] query
\n\n# Code\n```\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] queries) {\n            int[][] mat = new int[n][n];\n        for (int[] query : queries) {\n            int row1 = query[0], col1 = query[1], row2 = query[2], col2 = query[3];\n            for (int i = row1; i <= row2; i++) {\n                for (int j = col1; j <= col2; j++) {\n                    mat[i][j]++;\n                }\n            }\n        }\n        return mat;\n    \n    }\n}\n```
['Java']