Input and Output classes in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

10th Nov 2016, 10:43 AM
Arnie
Arnie - avatar
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,...
10th Nov 2016, 9:53 PM
Danny Hale
Danny Hale - avatar