Example usage for java.io CharArrayWriter append

List of usage examples for java.io CharArrayWriter append

Introduction

In this page you can find the example usage for java.io CharArrayWriter append.

Prototype

public CharArrayWriter append(CharSequence csq, int start, int end) 

Source Link

Document

Appends a subsequence of the specified character sequence to this writer.

Usage

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());

}