Code example for CharArrayWriter

Methods: toString

     * wrapper. The API for CharArrayWriter does not guarantee that it 
     * "remembers" the previous value, so the call is likely to make 
     * a new String every time. 
    public String toString() {
        return (charWriter.toString());
     * Get the underlying character array. 
    public char[] toCharArray() { 
        return (charWriter.toCharArray());
Contextual code suggestions in your IDE  Get Codota for Java