code: public void print() {
          for (int i = 0; i < M; i++) {
              for (int j = 0; j < N; j++) {
                  System.out.printf("%9.4f ", data[i][j]);
              }
              System.out.println();
          }
      }
docs: print matrix to standard output