System.in: This is available in java.lang.System class of Java.
Syntax:
InputStream java.lang.System.in
The "standard" input stream. This stream is already open and ready to supply input data. Typically this stream corresponds to keyboard input or another input source specified by the host environment or user.
Approach
Java
public class Systemin {public static void main(String[] args) {System.out.println(System.in);}}
Output:
java.io.BufferedInputStream@76ccd017
No comments:
Post a Comment