List of usage examples for java.io CharArrayReader ready
public boolean ready() throws IOException
From source file:Main.java
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//from w ww .ja v a 2s.c o m System.out.println("Ready ? " + isReady); }