write method
Converts obj to a String by invoking Object.toString and
adds the result to this.
Implementation
void write(Object obj);
Converts obj to a String by invoking Object.toString and
adds the result to this.
void write(Object obj);