code: public void printPattern(int[] row, int[] column, int offset) {
          int size = row.length;
          if (size != column.length)
              throw new IllegalArgumentException(
                      "All arrays must be of the same size");
          for (int i = 0; i < size; ++i)
              format(Locale.ENGLISH, "%10d %10d%n", row[i] + offset, column[i]
                      + offset);
      }
docs: Prints the coordinates to the underlying stream. One index pair on each
  line. The offset is added to each index, typically, this can transform
  from a 0-based indicing to a 1-based.