A
A
afna2015-03-02 20:28:52
Java
afna, 2015-03-02 20:28:52

Thinking in Java where did the BufferedInputFile class go?

The book Thinking in Java has this example:

//: 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); 
    } 
} /* (Execute to see output) *///:~

Intellij doesn't know what BufferedInputFile is .
I'm using jdk 1.8.0
Where did this class go?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2015-03-02
@sulik93

When I read this book, I also hung on this example. You flip the page back, there is an example with the creation of this class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question