code: public void addChar(char nextCh)
      throws IOException
    {
      int ch;
      
      while ((ch = readChar()) >= 0) {
        outputChar((char) ch);
      }
  
      outputChar(nextCh);
    }
docs: Adds the next character.
  
  @param nextCh the character to write