ava.io.CharArrayReader.ready() 方法 Java.io.CharArrayReader.read() 方法 Java.io.CharArrayReader.read len() 方法 Java.io.CharArrayReader.ready() 方法 package com.codingdict; import java.io.CharArrayReader; import java.io.IOException; public class CharArrayReadDemo { public static void main(String[] args) { CharArrayReader car = null; char[] ch = {'A', 'B', 'C', 'D', 'E'}; try { // create new character array reader car = new CharArrayReader(ch); // test whether the stream is ready to be read boolean isReady = car.ready(); // print System.out.println("Ready ? "+isReady); } catch(IOException e) { // if I/O error occurs e.printStackTrace(); } finally { // releases any system resources associated with the stream if(car!=null) car.close(); } } } Java.io.CharArrayReader.read() 方法 Java.io.CharArrayReader.read len() 方法