public SimpleTokenizer(String data){
  this.data=Objects.requireNonNull(data);
  reset();
}

public SimpleTokenizer ( String data ) { this . data = Objects . requireNonNull ( data ) ; reset ( ) ; }
creates a new instance that processes the given string .
