code: public char skipTo(char to) {
          char c;
          int index = this.myIndex;
          do {
              c = next();
              if (c == 0) {
                  this.myIndex = index;
                  return c;
              }
          } while (c != to);
          back();
          return c;
      }
docs: Skip characters until the next character is the requested character.
  If the requested character is not found, no characters are skipped.
  
  @param to A character to skip to.
  @return The requested character, or zero if the requested character
  is not found.