Category Java
Console in Java
Console in Java is a class in java.io package that provides access to the system console associated with JVM. Console class was introduced in Java 1.6 version. It is mainly used for reading data from the console and writing data…
Scanner in Java | Scanner Class, Example

Scanner in Java is a predefined class that reads or scans the data dynamically from the keyboard or a text file. In other words, scanner class allows the user to read all types of numeric values, strings, and other types…
PrintWriter in Java (with Example)
PrintWriter in Java is a character output stream that creates a file and writes output data to a text file in a human-readable format. It provides several methods to print strings and numbers in text format. The methods of PrintWriter…
BufferedWriter in Java
BufferedWriter in Java is a Writer that buffers the stream of characters before writing them to an underlying output stream. It adds the buffering capability to the underlying output character stream, so that there is no need to access the…
FileWriter in Java (with Example)

FileWriter in Java is an output stream that writes data in the form of characters into the text file. In other words, FileWriter is a character-based output stream that writes characters into a text file using the platform’s default character…