@@ -0,0 +1,569 @@
+/**%0A * M%5Bi%5D =%3E M%5Bn/i%5D%5Bn%25i%5D Will it result in right mapping? Take some example and check this formulae.%0A */%0Aclass Solution %7B%0A    public int%5B%5D%5B%5D matrixReshape(int%5B%5D%5B%5D nums, int r, int c) %7B%0A        int size = nums.length;%0A        int length = nums%5B0%5D.length;%0A        if (r * c != size * length) %7B%0A            return nums;%0A        %7D else %7B%0A            int%5B%5D%5B%5D result = new int%5Br%5D%5Bc%5D;%0A            int j = r * c;%0A            for (int i = 0; i %3C j; i++) %7B%0A                result%5Bi/c%5D%5Bi%25c%5D = nums%5Bi/length%5D%5Bi%25length%5D;%0A            %7D%0A            return result;%0A        %7D%0A    %7D%0A%7D%0A

Create ReshapetheMatrix.java