Showing posts with label readLine(). Show all posts
Showing posts with label readLine(). Show all posts

Sunday, 26 January 2014

READING CONSOLE INPUT

READ INPUT FROM  CONSOLE-JAVA

How to Read Input From Console in java

Reading console input in simple java console applications is a very straight forward process. Java provides developers two predefined streams in the java.lang.System class to read and write data to and from standard input and output devices. System.out is a standard output stream which is Console by default and System.in is predefined input stream which is Keyboard by default. To read user input in a console window we connect system.in with other stream classes available in java.io package.