Selected Reading

Java - StringWriter write(String str) method



Description

The Java StringWriter write(String str) method writes the given string.

Declaration

Following is the declaration for java.io.StringWriter.write(String str) method.

public void write(String str)

Parameters

  • str − String to be written.

Return Value

This method does not return a value.

Exception

NA