Java tutorial
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); } }