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[] s = { 'a', 'b', 'c' };
        char[] c = { 'H', 'e', 'l', 'l', 'o' };

        PrintStream ps = new PrintStream(System.out);

        // print char array
        ps.print(s);
        ps.print(c);

        // flush the stream
        ps.flush();

    }
}