这是来自 TIJ4 的代码#
java代码可以在cmd窗口编译运行,但不能在eclipse中编译运行 。
//: io/MemoryInput.java
import java.io.*;
public class MemoryInput {
public static void main(String[] args)
throws IOException {
StringReader in = new StringReader(
BufferedInputFile.read("MemoryInput.java"));
int c;
while((c = in.read()) != -1){
System.out.print((char)c);
}
}
关于eclipse中代码的错误信息是:
BufferedInputFile cannot be resolve