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 = { 'A', 'B', 'C', 'D', 'E' };

        CharArrayReader car = new CharArrayReader(ch);

        // test whether the stream is ready to be read
        boolean isReady = car.ready();

        // print
        System.out.println("Ready ? " + isReady);

    }
}