Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.*;

public class Main {

    public static void main(String[] args) {

        char c = 'b';

        StringWriter sw = new StringWriter();

        // write chars
        sw.write('a');
        sw.write(c);

        System.out.println(sw.toString());

    }
}