Consider this Scanner
input example.
Scanner user_input = new Scanner( System.in );
Here Scanner
is the CLASS.
Scanner class accepts input stream as a parameter and System class have a static variable in
which is of type InputStream
. System.in
gives you a instance of of type InputStream
.
Check this doc of public static final InputStream in
The "standard" input stream. This stream is already open and ready to supply input data.