First of all we need to know that in java for printing the line we use following command:
While we code the System then it is related with input and output and all the hardware conf.
Then the keyword out defines about the display of the line.
Now we need to input instead of output.
So just code by following ways:
Read More »Accepting Keyboard Input