Writer Append1() Example
Appends the specified character sequence to this writer.
Writer class Append1() method example. This example shows you how to use Append1() method.This method Appends the specified character sequence to this writer.
Here is the code:-
/**
* @Program that Appends the specified character sequence to this writer.
* Append1.java
* Author:-RoseIndia Team
* Date:-5-jun-2008
*/
import java.io.*;
public class Append1 {
public static void main(String[] args) {
StringWriter w = new StringWriter();
w.write("Rose");
System.out.println("String before Appending is: " + w);
// Appends the specified character sequence to this writer.
w.append("india");
System.out.println("String after Appending is: " + w);
}
} |
Output of the Program
String before Appending is: Rose
String after Appending is: Roseindia |
|