Java – what is system in

Consider this scanner input example

Scanner user_input = new Scanner( system.in );

The scanner is class user_ Input is the object under the scanner class What is (system. In)? Is it a passed parameter or an object under the scanner class?

Consider another example

dog dog1 = new dog(25)

Here I set the dog class to accept size as a parameter

system. What is in?

Solution

system. In is the "standard" input stream

Please review the following documents: http://docs.oracle.com/javase/7/docs/api/java/lang/System.html

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>