code: public static String[][] createMatrix(final String[] data) {
          int maxNewLines = 0;
          for (final String col : data) {
              maxNewLines = Math.max(maxNewLines, Util.numNewLines(col));
          }
          final String[][] matrix = new String[maxNewLines + 1][data.length];
          for (int col = 0; col < data.length; col++) {
              final String[] exploded = Util.explode(data[col]);
              for (int row = 0; row < maxNewLines + 1; row++) {
                  if (exploded.length > row) {
                      matrix[row][col] = exploded[row];
                  } else {
                      matrix[row][col] = "";
                  }
              }
          }
  
          return matrix;
  
      }
docs: Creates a matrix according to the number of new lines given into the method.
  
  @param data an array of row data
  @return the matrix.