Create a StringWriter object
The default constructor allows us to create a StringWriter with default string buffer size.
import java.io.StringWriter;
/**
* StringWriter class examples.
*/
public class StringWriterExample {
public static void main(String[] args){
// Create a stringWriter object.
StringWriter writer = new StringWriter();
}
}
Tags: java.io, java.io.StringWriter, StringWriter, StringWriter class examples, StringWriter examples
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply