
FIND DISCRIPTION ABOUT print () and println ()METHODS

Both methods belongs to the PRINTSTREAM class in Java
The Print() method prints the same line. It makes the cursor to be placed in the same line of the displayed command.
For example:
print("hello");
print("hi");
display the output:
hellohi
The println() method prints on a new line. It makes the cursor to be placed in the next line of the displayed command.
For example:
println("hello");
println("hi");
display the output:
hello
hi