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 = { 'a', 'b', 'c', 'd', 'e', 'f' };

        PrintWriter pw = new PrintWriter(System.out);

        // write char
        pw.write(c, 1, 3);
        pw.write(c, 3, 3);

        // flush the writer
        pw.flush();

    }
}