Writer Write3() Example

Writes a string.


Writer class Write3() method example. This example shows you how to use Write3() method.This method Writes a string.

Here is the code:-

/**
 * @Program that Write a string.
 * Write3.java 
 * Author:-RoseIndia Team
 * Date:-5-jun-2008
 */
import java.io.*;

public class Write3 {

    public static void main(String[] args) {
        StringWriter writer = new StringWriter();
        //Write a string.
        writer.write("RoseIndia");
        System.out.println(writer);

    }
}

Output of the Program
 RoseIndia

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US