public int following(int pos) {if (pos < start || pos > end) {throw new IllegalArgumentException("offset out of bounds");} else if (pos == end) {current = end;return DONE;} else {return last();}}

public override int Following(int pos){if (pos < start || pos > end){throw new ArgumentException("offset out of bounds");}else if (pos == end){current = end;return Done;}else{return Last();}}
