Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.CharArrayReader;

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

        char[] ch = { 'H', 'E', 'L', 'L', 'O' };

        CharArrayReader car = new CharArrayReader(ch);

        car.close();

        // read the character array stream
        System.out.println(car.read());

    }
}