The easiest way to input and output information in Java is to use
standard I/O, which is the most basic form of input and output available to a Java program.
Standard I/O in Java is text-based, and operates under the premise that the computer has a standard input device and a standard output device,
which are typically the
keyboard and monitor.
Using standard I/O, you can input information from the keyboard and output it to the monitor with very little code using a couple of special Java objects.
These objects are part of the standard
System
object.
The
in
and
out
standard I/O objects are located within the
System
object and are programmatically referred to as
System.in
and
System.out
.