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