Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.FilterWriter;
import java.io.StringWriter;
import java.io.Writer;

public class Main {
    public static void main(String[] args) throws Exception {

        Writer w = new StringWriter(6);

        FilterWriter fw = new FilterWriter(w) {
        };

        fw.write(65);
        fw.write(66);
        fw.write(67);

        String s = w.toString();

        System.out.print(s);

    }
}