setInputChars method

void setInputChars(
  1. String inputChars
)

Implementation

void setInputChars(String inputChars) {
  this.inputChars = inputChars;
  index = -1; // reset the start index to the beginning of the input
}