void (final int n) { if (n < 0) { throw new IllegalArgumentException("Amount of chars to skip must be non neagitve: " + n); } if (myPosition + n >= myText.length()) { throw new IllegalArgumentException("Skipping beyond end of the text (" + myPosition + " + " + n + " >= " + myText.length() + ")"); } myPosition += n; }