comefrom: <awangdev>Rotate Image_1.java
code: public void rotate(int[][] matrix) {
          if (matrix == null || matrix.length == 0 || matrix[0].length == 0) {
              return;
          }
          int width = matrix.length;
          for (int i = 0; i < width/2; i++) {
              for (int j = 0; j < Math.ceil(width/2.0); j++) {
                 int temp = matrix[i][j];
                 matrix[i][j] = matrix[width - 1 - j][i];
                 matrix[width - 1 - j][i] = matrix[width - 1 - i][width - 1 - j];
                 matrix[width - 1 - i][width - 1 - j] = matrix[j][width - 1 - i];
                 matrix[j][width - 1 - i] = temp;
              }
          }
      }
masked: public void var_0 ( int [ ] [ ] var_1 ) {
    if ( var_1 == null || var_1 . length == 0 || var_1 [ 0 ] . length == 0 ) {
      return ;
    }
    int var_5 = var_1 . length ;
    for ( int var_6 = 0 ;
    var_6 < var_5 / 2 ;
    var_6 ++ ) {
      for ( int var_8 = 0 ;
      var_8 < Math . ceil ( var_5 / 2.0 ) ;
      var_8 ++ ) {
        int var_12 = var_1 [ var_6 ] [ var_8 ] ;
        var_1 [ var_6 ] [ var_8 ] = var_1 [ var_5 - 1 - var_8 ] [ var_6 ] ;
        var_1 [ var_5 - 1 - var_8 ] [ var_6 ] = var_1 [ var_5 - 1 - var_6 ] [ var_5 - 1 - var_8 ] ;
        var_1 [ var_5 - 1 - var_6 ] [ var_5 - 1 - var_8 ] = var_1 [ var_8 ] [ var_5 - 1 - var_6 ] ;
        var_1 [ var_8 ] [ var_5 - 1 - var_6 ] = var_12 ;
      }
    }
  }
  