0
Input and Output classes in java
I only know Scanner and BufferedReader for input and Print Writer for output. What are the others? And when to use them? What are their differences?
1 Answer
0
Those are just classes written to handle the input and output stream. Basically you could simply write your own "Wrapper" class which handles those streams as you like. You may have noticed that those predefined classes exist for comfort. For example, there are streams that will deliver you the content as a text in string type and others which use a buffer to improve the reading performance for the computer. I could name you further Wrapper classes, but there are way too many out there. There is one for every need, Filereader/Filewriter for reading/writing files,...