List of usage examples for java.io CharArrayWriter append
public CharArrayWriter append(CharSequence csq, int start, int end)
From source file:Main.java
public static void main(String[] args) { CharArrayWriter chw = new CharArrayWriter(); // declare character sequence CharSequence csq = "tutorial from java2s.com"; // append character sequence to the writer chw.append(csq, 2, 5); // prints out the character sequences System.out.println(chw.toString()); }