toString() method is one of the feature of java. It is the method of class
String which is imported default on JVM from
ToString() method is one of the display method.
When ever we tries to print the text from
System.out.println("Hello"); then it directly inherit from the
toString() method. We can override the
toString() method and make the
println to print what we desire.
Read More »ToString() method
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